public void setShadowCompareMode(ShadowCompareMode compareMode){
        if (compareMode == null){
            throw new IllegalArgumentException(
                    "compareMode can not be null.");
        }
        this.shadowCompareMode = compareMode;
    }
@param compareMode
           the new ShadowCompareMode for this texture.
@throws IllegalArgumentException
            if compareMode is null
@see ShadowCompareMode
jme3-core/src/main/java/com/jme3/texture/Texture.java