Greetings. I'm a total beginner and need a specific way to cut out some planes of mine. I wanna simulate a very basic and shadow system with two static light sources and parallel shadows. And because you can't have two direct lights that cast shadows, I wanted to do it this way. Its for a quick project, so this should be fine.
In the view we got:
- basic plane, which is grey and beneath the other two planes
- Some blocks, where either of them has two shadow-planes, where one goes to the top right and one to the top left
- red transparent plane, which cuts out the shadow-planes that go to the top right
- blue transparent plane, which cuts out the shadow-planes that go to the top left
And with a very basic video about stencil, I was able to create the image attached. But there is a problem with the intersection of the shadow-planes. The intersection of the red and blue shadow should create a grey spot, because the red and blue light source are both blocked.
I tried to solve it myself, but to be honest, I still have problems understanding the stencil and shaders options.
Before I invest so much time, I wanted to ask if this is possible with the stencil shader at all, how would I do it if its possible or if there is an easier way to do this?
I use the 3D URP Render pipeline