GE Lua Documentation

Press F to search!

setShaderConsts

Definition


-- @/lua/ge/client/postFx/flash.lua:30
flashFxCallbacks.setShaderConsts = function()
  local flashFx = scenetree.findObject("FlashFx")
  if flashFx then
    local damageFlash = 0 -- this is suppose to be retrieved from function Game.getDamageFlash()
    local whiteOut = 0 -- this is suppose to be retrieved from function Game.getWhiteOut()
    flashFx:setShaderConst("$damageFlash", damageFlash)
    flashFx:setShaderConst("$whiteOut", whiteOut)
  end
end

Callers