- Home /
Hide 2D light beneath another light's cast shadow
I'm currently using the universal rendering pipeline for some of the built in lighting effects. I have a setup where the player character emits a light that also casts shadows on objects it hits (using Shadow Caster 2D). However, I am trying now to create another light source that could be obscured by said cast shadows.
Essentially, the player should only be able to see only what the player character could "see", meaning the player would only see part of the other light source. Here is an image for reference:
I'm not sure I see a way for this to be done, other than manually creating a shadow cast script and ensuring that light sources do not overlap the cast shadows. If there is a way to do this with the rendering pipeline, I would love to hear it!
Your answer
Follow this Question
Related Questions
Scene lights flickering 0 Answers
Lightmaps different on same environment 0 Answers
Light shining through objects / weird shadows 2 Answers
How can I add volume/depth to shadows? 0 Answers
Raymarching - bad shadows/light quality on fractals 0 Answers