public void setDistance(float dist) {
        applyDistance = dist;
        if( material != null ) material.setFloat("Distance", dist);
    }
Set the distance of the material.
@param dist the distance of the material.
jme3-vr/src/main/java/com/jme3/post/CartoonSSAO.java