ColinLeung-NiloCat / UnityURPUnlitScreenSpaceDecalShader

Unity unlit screen space decal shader for URP. Just create a new material using this shader, then assign it to a new unity cube GameObject = DONE, now you have unlit decal working in URP
MIT License
1.26k stars 129 forks source link

Can't set decal to be transparent right. #26

Closed mypaxa00 closed 3 years ago

mypaxa00 commented 3 years ago

I want that texture alpha 0 be transparent at rendering, how can I achieve this?? Unity_tSQaxaYGZN

ColinLeung-NiloCat commented 3 years ago

https://github.com/ColinLeung-NiloCat/UnityURPUnlitScreenSpaceDecalShader#i-can-see-decal-renders-correctly-but-which-blendmode-should-i-use-in-the-material-inspector

Blend SrcAlpha OneMinusSrcAlpha // Traditional transparency

mypaxa00 commented 3 years ago

That why I'm asking, because none of those blend modes works. At least for me. Unity_PLBSCOeC0T

ColinLeung-NiloCat commented 3 years ago

_AlphaRemap use (1,0,0,0)

mypaxa00 commented 3 years ago

Perfect. thanks.