import { EnvironmentalIntensityPM } from "../PMs/EnvironmentalIntensityPM";
export const environmentalIntensityAdapter = {
    defaultVM: 0.75,
    subscribe: (appObjects, setVM) => {
        const pm = EnvironmentalIntensityPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("environmentalIntensityAdapter", "Unable to find TexturalEnvironmentPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        EnvironmentalIntensityPM.get(appObjects)?.removeView(setVM);
    },
};
//# sourceMappingURL=environmentalIntensityAdapter.js.map