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

Decals work on scene view, but not in game view #10

Closed mxaddict closed 4 years ago

mxaddict commented 4 years ago

image

image

ColinLeung-NiloCat commented 4 years ago

what is your URP version?

mxaddict commented 4 years ago

OS: Windows 10 64bit 1903 Unity: 2019.3.15f1 URP: 7.3.1

ColinLeung-NiloCat commented 4 years ago

just to make sure, did you turn on depth texture in URP's setting?

mxaddict commented 4 years ago

just to make sure, did you turn on depth texture in URP's setting?

I did not 😄 Is that mentioned somewhere in the readme?

mxaddict commented 4 years ago

That seems to have fixed the rendering of the decal image

mxaddict commented 4 years ago

But, I have a different issue, seems my character weapon is being rendered before the decal.

What render step is the decal rendered on?

image

mxaddict commented 4 years ago

NVM, I've fixed it, I just set my weapon/player models to render after transparents

ColinLeung-NiloCat commented 4 years ago

I will add a more clear note of "enable depth texture" in readme, thanks!

mxaddict commented 4 years ago

Thanks, this is amazing!

image

mxaddict commented 4 years ago

I'll add you to my credits section of the game I'm working on 😄 it's the least I can do.