How to make an object fully lit or not at all?
Hi! I'm making a 3d (3rd person) game, where I want my player's flashlight to emit a spot light which doesn't have any "gradients", it makes everything in its path fully lit, and everything else black.
I tried doing it with shaders, but they are really complicated and I couldn't find any remotely specific tutorials or papers in this subject.
For example here is a 2D game with the same effect: https://www.youtube.com/watch?v=JAxTR0wJhmw
Here are 2 screenshots from my game, with only placeholder art. This one is the normal TP view, that the players are gonna see:
and this one is just an example, of what the maps will look like:
If anyone is confused, those objects are vents, you can climb into them and move under the map in a tunnel.
Thanks for your help in advance!