@Override
    protected void clearMaterialParameters(Material material) {
        material.clearParam("LightPos");
        material.clearParam("LightDir");
    }
Sets the light to use to cast shadows

@param light a SpotLight
jme3-core/src/main/java/com/jme3/shadow/SpotLightShadowRenderer.java