- Home /
custom shader error. copy of "Nature/Tree Soft Occlusion Leaves"
Hello Everyone,
I have a custom shader that is used for underwater plants and allows it to render in front of fog (sometimes the fog cuts off transparent shaders...no idea why).
So what I did was create a copy of the nature/soft occlusion tree leaves shader and just changed it, so it had
Tags { "QUEUE"="AlphaTest" "IGNOREPROJECTOR"="false" "RenderType"="TransparentCutout" }
Cull Off
ZWrite On
instead of having it say
Tags { "QUEUE"="Transparent-99" "IGNOREPROJECTOR"="true" "RenderType"="TreeTransparentCutout" }
Lighting On
Cull Off
ColorMask RGB
But now it causes my plants to have a light shade of blue where they started.
I don't know what is causing this. At first I thought it was my "edge detection script", but even after I turned it and any other camera effects off, it still caused it.
Would anyone be able to point out where I went wrong? I greatly appreciate it.
Again the shader script is pretty much a copy and past of the Shader "Nature/Tree Soft Occlusion Leaves", expect where I showed the changes before. Its about 2940 lines of code, so I don't want to paste the whole thing. 0_o.
Thank you again!
Your answer
Follow this Question
Related Questions
Shader alpha setting being ignored? 1 Answer
How to: vertex colored mesh shader that doesn't break Sprite Manager. 1 Answer
COLORMASK & writing to multiple render targets In Deferred doesn't work as expected in DX9 1 Answer
Shader not working properly on Android 1 Answer
Shader limits on iPad 1 Answer