Flag DEPTH_WRITEMASK not reset after draw mesh

PG: https://playground.babylonjs.com/#RP3Q1I#1
According to Inspector, flag DEPTH_WRITEMASK changed with or without mat1.forceDepthWrite when drawing the ground, so the sphere2 will be blocked by the ground if the sphere2 draws after ground, even if the ground is transparent.

Thanks for reporting, here’s the fix:

1 Like