Can anyone get this shader to work in unity 3.4?
The example scene on that page doesn’t appear to work
Can anyone get this shader to work in unity 3.4?
The example scene on that page doesn’t appear to work
Try copying instead of trying UsePass. There’s nothing wrong with the rest of it.
It’s alright, got it working now
spinaljack, do you mind posting the changes? My lovely floating healthbars are all messed up!
Cheers
I just opened a different shader and changed “Queue” = “Geometry” to “Queue” = “Geometry+20”
Do this for each shader you’re going to use that you want to be hidden by the depth mask shader save it to a different location and put masked/[original shader name] at the top of the shader so that they’re all grouped together nicely in the editor
The depth mask shader itself doesn’t need changing
do you think you could post the shader code for this. I have not been able to get this to work for the life of me. thank you
Yes! Can you please post the shader code that worked for you??
Or maybe give us the name of the shader you modified.
thanks!
bump…
No need to dig up two threads.
there is a problem with this one. It doesnt hide the buffer shadow of the object behind it.