@Override
    protected void setMaterialParameters(Material material) {
        material.setColor("Splits", splits);
        material.setVector3("LightDir", light.getDirection());
        if (fadeInfo != null) {
            material.setVector2("FadeInfo", fadeInfo);
        }
    }
Sets the light to use to cast shadows
@param light a DirectionalLight
jme3-vr/src/main/java/com/jme3/shadow/DirectionalLightShadowRendererVR.java