GE Lua Documentation

Press F to search!

applyLightRaysPreset

Definition


-- @/lua/ge/client/postFx.lua:239

M.applyLightRaysPreset = function()
  TorqueScriptLua.setVar("$LightRayPostFX::Enable",  TorqueScriptLua.getVar("$PostFXManager::Settings::LightRays::Enable"))
  TorqueScriptLua.setVar("$LightRayPostFX::brightScalar", TorqueScriptLua.getVar("$PostFXManager::Settings::LightRays::brightScalar"))
end

Callers

@/lua/ge/extensions/editor/rendererComponents.lua
    postFxModule.loadPresetFile("lua/ge/client/postFx/presets/defaultPostfxPreset.postfx")
    postFxModule.applyLightRaysPreset()
    initialiseSettings()
@/lua/ge/client/postFx.lua
  -- Light rays settings
  M.applyLightRaysPreset()