So here is my thing, I want to make all the scene dark and then i put lights how i want.
but the probleme is sprites do not react to lighting.
Any help would be appreciated
What i have :
What i want (something like this) :
So here is my thing, I want to make all the scene dark and then i put lights how i want.
but the probleme is sprites do not react to lighting.
Any help would be appreciated
What i have :
What i want (something like this) :
Hey there,
You can create your own material for the sprites (the default created one will work) and just use the Diffuse shader found under sprite shaders.
There is a short tutorial here: http://imakeinternet.com/unity-2d-sprite-lighting/
Thank you mate
Sorry to necro the thread, but is it possible to make sprites “stop” light? Like in OP’s second image, but with the walls stopping the light from propagating.
I really hope we can get some form of answer to this cause ive been looking for it for a long time XD
Another option is to first draw your light
, starting with a black screen, and then use only a MULTIPLY shader (e.g. particles multiply?) to draw your objects. They will only show up where the light is.
Unfortunately im still fairly new to programming and so i have absolutely no idea hwo to go about that
set the camera to clear to black
position your ‘lights’ in front of that camera
make another camera, to be rendered second
in front of that camera, position objects which use a particles multiple shader/material