- Home /
How do I make camera not render specific lights?
Im Making a simulation based around the book "Flatland", I made a game with 2 players that each one of them has a camera and a spot light on its front so they can see closer stuff brighter (like the in book), but when the two players look at the same spot the two lights mix together, I think the solution is to make each camera see its light, but I dont know how to do it. (I tried putting the each light in different layers) Can someone please help me one this? (btw im making it 3D instead of 2D)
Answer by Pangamini · Oct 17, 2016 at 09:41 AM
Why don't you keep the lights disabled, and only enable them from the camera's callbacks? Enable the light in OnPreCull, disable again on OnPostRender.
Your answer
Follow this Question
Related Questions
Active LIve LIghting 0 Answers
Miniature Sun effect 0 Answers
Lighting on overlapping sprites 2 Answers
Lightmapping problem 0 Answers
Toon Shader Not Working With Multiple Spotlight Shadows (Pro) 0 Answers