- Home /
How to only show sprite with 2D light?
I want a mechanic that allows me to have a flashlight (2D point light) shining on something that can only be seen on that point light's layer mask. However, if I have a dim global light in the scene, you can still see the sprite, it is just completely black which looks silly. Once the flashlight shines on the object, you can see the actual sprite colors, but I don't want to see the black silhouette when it's off.
I want to be able to use this effect to maybe show things that you wouldn't normally see or give the illusion that there's another layer on or behind the main screen that you can only see with the point light.
Any help would be really appreciated.
Note: This is using the 2D render pipeline for 2D lighting that recently came out.
Your answer
Follow this Question
Related Questions
2D lights not working in WebGL build 0 Answers
2D solarsystem lighting 0 Answers
Is tilemap renderer sorting done by camera y position? 0 Answers
Extrange Behaviour with 2D Lights in Universal RP 0 Answers
URP 2D lights not working as expected 6 Answers