by Jotaf98 (9 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(7 Votes)

Well, since the first "Light" demo project came out so good, I had to make another one ;)
This one has a difference: instead of drawing a light with the specified radius, it draws a light based on a mask image. The Radius now only controls the size of the glow effect. It's also just a bit faster (remember, I'm just about to learn DirectX to enhance these effects even more!).
Inputs
Call the function and it will draw it all for you! You don't need to understand the code, if you're looking for how to make your own algorythms, the "Light Effects" sample is much easier and well commented. Still, this one would be good for a game or a painting program anyway.
Download Masked Light (27 KB)