I would like to ask how I could go about in making a particular light's glow fall upon objects that are near it, as visualized in the image below:
Flesh: Box (The object that the light will fall upon) - Green: Light source.
As you can see, as the box goes near the light source, the box is slowly illuminated with a glow coming from the neon green light. Take note that the glow should only fall on objects near it, and nowhere else. The background should have no glow as well.
I'm not really sure how I should proceed with this so I am hoping if you guys could give me a basic idea on how to do it.
Here's the idea I've come up with but I'm not sure how to do it:
I'm gonna make use of a green gradient that will serve as the glowing light from the light source.
The part of the gradient where it overlaps with the box object will be the only one that will be shown. The rest are not displayed on screen.
Any ideas on how to implement this? Or if you have a better method, please share it!
Looking forward to your replies. Thanks!