Hello.
I have a question. How to make a transparent plane behind which shadows of other objects will NOT be rendered?
I will be very grateful for any ideas and ways to solve the problem.
Hello.
I have a question. How to make a transparent plane behind which shadows of other objects will NOT be rendered?
I will be very grateful for any ideas and ways to solve the problem.
I think you’d have to create a custom shader to accomplish this. This question is better suited for the General Graphics sub-forum.
What are you trying to achieve? Can you post a diagram or picture? There might be a better way.
The ways I can think of to do this in a generalized way (allowing viewing the plane from any angle, having shadow-casting stuff on both sides of the plane just not allowing shadows to cross the plane) are VERY complicated and might require stuff like hacking the render pipeline (or having your own SRP).
EDIT: For an example of a tricky case, consider a scene containing only a tree (single mesh). The branches of the tree need to cast shadows on each other and the tree trunk. Now put the plane in the middle of the tree. Do these self-shadows go through the plane? If not, are both sides of the tree independently able to shadow themselves?
burningmime is right, but maybe you could simply turn shadows off for objects behind the plane?