@Override
    public void write(JmeExporter ex) throws IOException {
        super.write(ex);
        OutputCapsule oc = ex.getCapsule(this);
        oc.write(enabled, "enabled", true);
        oc.write(spatial, "spatial", null);
        oc.write(envMapSize, "size", 256);
        oc.write(requiredSavableResults, "requiredSavableResults", false);
        oc.write(bakeNeeded, "bakeNeeded", true);
        oc.write(frustumFar, "frustumFar", 1000f);
        oc.write(frustumNear, "frustumNear", 0.001f);
        oc.write(uuid, "envProbeControlUUID", "none");
    }
Sets the asset manager used to load the shaders needed for the baking.

@param assetManager the asset manager
jme3-core/src/main/java/com/jme3/environment/EnvironmentProbeControl.java