public void HDRPostFXpreProcess(coSimSet thisobj)
        {
            coPostEffect combinePass = thisobj.findObjectByInternalName("combinePass", true);

            if (combinePass[".texture[3]"] != sGlobal["$HDRPostFX::colorCorrectionRamp"])
            {
                combinePass.setTexture(3, sGlobal["$HDRPostFX::colorCorrectionRamp"]);
            }
        }
Beispiel #2
0
        public void PostFXManagersettingsRefreshHDR(coSimSet thisobj)
        {
            //Apply the enabled flag
            console.Call("ppOptionsEnableHDR", "setValue", new[] { console.GetVarString("$PostFXManager::PostFX::EnableHDR") });
            console.Call("ppOptionsHDRBloom", "setValue", new[] { console.GetVarString("$HDRPostFX::enableBloom") });
            console.Call("ppOptionsHDRBloomBlurBrightPassThreshold", "setValue", new[] { console.GetVarString("$HDRPostFX::brightPassThreshold") });
            console.Call("ppOptionsHDRBloomBlurMean", "setValue", new[] { console.GetVarString("$HDRPostFX::gaussMean") });
            console.Call("ppOptionsHDRBloomBlurMultiplier", "setValue", new[] { console.GetVarString("$HDRPostFX::gaussMultiplier") });
            console.Call("ppOptionsHDRBloomBlurStdDev", "setValue", new[] { console.GetVarString("$HDRPostFX::gaussStdDev") });
            console.Call("ppOptionsHDRBrightnessAdaptRate", "setValue", new[] { console.GetVarString("$HDRPostFX::adaptRate") });
            console.Call("ppOptionsHDREffectsBlueShift", "setValue", new[] { console.GetVarString("$HDRPostFX::enableBlueShift") });


            console.SetVar("ppOptionsHDREffectsBlueShiftColor.BaseColor", console.GetVarString("$HDRPostFX::blueShiftColor"));
            console.SetVar("ppOptionsHDREffectsBlueShiftColor.PickColor", console.GetVarString("$HDRPostFX::blueShiftColor"));

            console.Call("ppOptionsHDRKeyValue", "setValue", new[] { console.GetVarString("$HDRPostFX::keyValue") });
            console.Call("ppOptionsHDRMinLuminance", "setValue", new[] { console.GetVarString("$HDRPostFX::minLuminace") });
            console.Call("ppOptionsHDRToneMapping", "setValue", new[] { console.GetVarString("$HDRPostFX::enableToneMapping") });
            console.Call("ppOptionsHDRToneMappingAmount", "setValue", new[] { console.GetVarString("$HDRPostFX::enableToneMapping") });
            console.Call("ppOptionsHDRWhiteCutoff", "setValue", new[] { console.GetVarString("$HDRPostFX::whiteCutoff") });

            console.SetVar(thisobj.findObjectByInternalName("ColorCorrectionFileName", true), console.GetVarString("$HDRPostFX::colorCorrectionRamp"));
        }