Add files via upload

This commit is contained in:
Bottinator22 2024-12-28 19:58:18 -08:00 committed by GitHub
parent d2e1826865
commit d63501aa07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,22 @@
-- Meant to manage loading various miscellaneous things from configuration, such as shader parameters.
local module = {}
modules.config_loader = module
function module.init()
local shaderConfig = root.getConfiguration("postProcessGroups") or {}
local postProcessGroups = renderer.postProcessGroups()
local changes = false
for k,v in next, shaderConfig do
local group = postProcessGroups[k]
if v.parameters then
for k2,v2 in next, group.parameters do
if v.parameters[k2] ~= nil then
for _,e in next, v2.effects do
renderer.setEffectParameter(e,k2,v.parameters[k2])
end
end
end
end
end
end