backupCurrentSettings
Definition
-- @/lua/ge/client/postFx.lua:324
M.backupCurrentSettings = function()
if not M.backupSettings then
log('I','','Creating backup of Postfx settings')
M.backupSettings = {}
local DOF = {}
DOF.Enable = TorqueScriptLua.getVar('$DOFPostFx::Enable')
DOF.EnableDebugMode = TorqueScriptLua.getVar('$DOFPostFx::EnableDebugMode')
DOF.BlurMin = TorqueScriptLua.getVar('$DOFPostFx::BlurMin')
DOF.BlurMax = TorqueScriptLua.getVar('$DOFPostFx::BlurMax')
DOF.FocusRangeMin = TorqueScriptLua.getVar('$DOFPostFx::FocusRangeMin')
DOF.FocusRangeMax = TorqueScriptLua.getVar('$DOFPostFx::FocusRangeMax')
DOF.BlurCurveNear = TorqueScriptLua.getVar('$DOFPostFx::BlurCurveNear')
DOF.BlurCurveFar = TorqueScriptLua.getVar('$DOFPostFx::BlurCurveFar')
M.backupSettings.DOF = DOF
local LightRay = {}
LightRay.Enable = TorqueScriptLua.getVar('$LightRayPostFX::Enable')
LightRay.brightScalar = TorqueScriptLua.getVar('$LightRayPostFX::brightScalar')
M.backupSettings.LightRay = LightRay
local HDR = {}
HDR.Enable = TorqueScriptLua.getVar('$HDRPostFX::Enable')
HDR.adaptRate = TorqueScriptLua.getVar('$HDRPostFX::adaptRate')
HDR.blueShiftColor = TorqueScriptLua.getVar('$HDRPostFX::blueShiftColor')
HDR.brightPassThreshold = TorqueScriptLua.getVar('$HDRPostFX::brightPassThreshold')
HDR.enableBloom = TorqueScriptLua.getVar('$HDRPostFX::enableBloom')
HDR.enableBlueShift = TorqueScriptLua.getVar('$HDRPostFX::enableBlueShift')
HDR.enableToneMapping = TorqueScriptLua.getVar('$HDRPostFX::enableToneMapping')
HDR.gaussMean = TorqueScriptLua.getVar('$HDRPostFX::gaussMean')
HDR.gaussMultiplier = TorqueScriptLua.getVar('$HDRPostFX::gaussMultiplier')
HDR.gaussStdDev = TorqueScriptLua.getVar('$HDRPostFX::gaussStdDev')
HDR.keyValue = TorqueScriptLua.getVar('$HDRPostFX::keyValue')
HDR.minLuminace = TorqueScriptLua.getVar('$HDRPostFX::minLuminace')
HDR.whiteCutoff = TorqueScriptLua.getVar('$HDRPostFX::whiteCutoff')
HDR.colorCorrectionStrength = TorqueScriptLua.getVar('$HDRPostFX::colorCorrectionStrength')
HDR.colorCorrectionRamp = TorqueScriptLua.getVar('$HDRPostFX::colorCorrectionRamp')
M.backupSettings.HDR = HDR
local SSAO = {}
SSAO.Enable = TorqueScriptLua.getBoolVar("$SSAOPostFx::Enable")
SSAO.blurDepthTol = TorqueScriptLua.getVar('$SSAOPostFx::blurDepthTol')
SSAO.blurNormalTol = TorqueScriptLua.getVar('$SSAOPostFx::blurNormalTol')
SSAO.lDepthMax = TorqueScriptLua.getVar('$SSAOPostFx::lDepthMax')
SSAO.lDepthMin = TorqueScriptLua.getVar('$SSAOPostFx::lDepthMin')
SSAO.lDepthPow = TorqueScriptLua.getVar('$SSAOPostFx::lDepthPow')
SSAO.lNormalPow = TorqueScriptLua.getVar('$SSAOPostFx::lNormalPow')
SSAO.lNormalTol = TorqueScriptLua.getVar('$SSAOPostFx::lNormalTol')
SSAO.lRadius = TorqueScriptLua.getVar('$SSAOPostFx::lRadius')
SSAO.lStrength = TorqueScriptLua.getVar('$SSAOPostFx::lStrength')
SSAO.overallStrength = TorqueScriptLua.getVar('$SSAOPostFx::overallStrength')
SSAO.quality = TorqueScriptLua.getVar('$SSAOPostFx::quality')
SSAO.sDepthMax = TorqueScriptLua.getVar('$SSAOPostFx::sDepthMax')
SSAO.sDepthMin = TorqueScriptLua.getVar('$SSAOPostFx::sDepthMin')
SSAO.sDepthPow = TorqueScriptLua.getVar('$SSAOPostFx::sDepthPow')
SSAO.sNormalPow = TorqueScriptLua.getVar('$SSAOPostFx::sNormalPow')
SSAO.sNormalTol = TorqueScriptLua.getVar('$SSAOPostFx::sNormalTol')
SSAO.sRadius = TorqueScriptLua.getVar('$SSAOPostFx::sRadius')
SSAO.sStrength = TorqueScriptLua.getVar('$SSAOPostFx::sStrength')
M.backupSettings.SSAO = SSAO
end
end
Callers
@/lua/ge/extensions/editor/rendererComponents.lua
settings = rcAPI.getSettings(true)
postFxModule.backupCurrentSettings()
initialiseSettings()