@Override
    protected void setMaterialParameters(Material material) {    
         material.setVector3("LightPos", light.getPosition());
         material.setVector3("LightDir", light.getDirection());
    }
Sets the light to use to cast shadows

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