Zwrite Off

Hello,

I’m using the LWRP in Unity 2019.2.11.

I’m creating a shader with the shader graph but I need to disable its Depth buffer.
Is there a way either in the shader graph itself or maybe in one of the Custom Renderer Features??

Thanks in advance for the good help

Z writing is controlled by the master node.
If its not a option to select you can not change it via the Shader Graph.
You can make a copy if the generated shader and change it manually.

1 Like

Thanks fffMalzbier, didn’t know I could copy/paste from the master node :slight_smile:

It would be a good thing though, to have this option available.

To view the Generated Shader code , right click on the master node and select “Show Generated Code”.
Then you can Make a new “non Shadergraph shader” and paste everything into that new file.

1 Like

Yep, thanks fffMalziber.

(my last comment was about a Zwrite option on the Master node, which would be handy)

2 Likes