public void setClearDepth(boolean clearDepth) {
        this.clearDepth = clearDepth;
    }
Enables or disables clearing of the depth buffer for this ViewPort.

<p>By default depth clearing is disabled.

@param clearDepth Enable/disable depth buffer clearing.
jme3-core/src/main/java/com/jme3/renderer/ViewPort.java