ColinLeung-NiloCat/UnityURPUnlitScreenSpaceDecalShader

Render by Layer

dkazantsev-wrg opened this issue · 3 comments

Is there any way to render decal only on objects in specific LayerMask and ignore projection on some objects?

It is not easy because it is a screen space method, you can control draw area by:
-stencil buffer
-render order

I did this by changing Render Queue, not so modular, but my goal was to render it only on terrain, so no problems.

yes, this is a limitation to any screen space decal method. It is not easy to render decal only on some objects