I’m trying this is in an example project and the material doesn’t get overwritten. Am I missing something here?
https://playcanvas.com/editor/scene/1352732
Pressing 1 that prints out the depthWrite setting is in the console and that always prints true