ColinLeung-NiloCat/UnityURPUnlitScreenSpaceDecalShader

3 dimensional projections?

ChalkyBrush opened this issue · 1 comments

I'm trying to modify the projection shader to take into account height. Right now the decals are stretched along the Y axis (IE up a hill)

If I change decalSpaceUV = decalSpaceScenePos.xz, it takes into acount height but no longer works on flat surfaces

It is a very large decal with a scale of 50x50x50, so a simple rotation toward the hit normal is not enough