public void setDepthWrite(boolean depthWrite) {
        applyDepthWrite = true;
        this.depthWrite = depthWrite;
        cachedHashCode = -1;
    }
Enable depth writing.

<p>After passing the {@link RenderState#setDepthTest(boolean) depth test},
a pixel's depth value will be written into the depth buffer if
depth writing is enabled.

@param depthWrite True to enable writing to the depth buffer.
jme3-core/src/main/java/com/jme3/material/RenderState.java