- Home /
_zwrite keeps disabling on transparent/fade material (Unity standard shader)
I need _zwrite enabled for a model to render correctly. In the Unity standard shaders, _zwrite isn't enabled for transparent or fade. It can be enabled, but only in debug mode. As long it is enabled, it works as expected. But as soon i select the material in the editor while not in debug mode, _zwrite will be disabled again. This raises a few questions for me.
1) Why is zwrite not accessible in "normal" mode, but only in "debug" mode?
2) Why does _zwrite get resetted when selecting the material?
3) Does it work properly in game mode and not unexpectedly reset eventually?
Thanks for any hints and answers.
Comment