Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/assets/opensb/objects
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-06-28 17:10:17 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-06-28 17:10:17 +1000
commit54ac208dd5a54c827567a3a86e152680ae7663ea (patch)
tree86218292795659a558f5ae65a712f1e6ed0e33ea /assets/opensb/objects
parentbb5387fbdb90ec5e3b387ed73718b281b207252b (diff)
lighting: disable the new additive point light behavior when new lighting is off
Diffstat (limited to 'assets/opensb/objects')
-rw-r--r--assets/opensb/objects/opensb/object.patch.lua18
1 files changed, 17 insertions, 1 deletions
diff --git a/assets/opensb/objects/opensb/object.patch.lua b/assets/opensb/objects/opensb/object.patch.lua
index df783ac..45ecf23 100644
--- a/assets/opensb/objects/opensb/object.patch.lua
+++ b/assets/opensb/objects/opensb/object.patch.lua
@@ -1,6 +1,22 @@
+--local function drop(color)
+-- if type(color) == "table" then
+-- for i = 1, #color do
+-- color[i] = color[i] * 0.8
+-- end
+-- end
+--end
+
function patch(object, path)
if object.pointLight ~= true and (object.lightColor or object.lightColors) then
object.lightType = "PointAsSpread"
- return object;
+ return object
+ --elseif type(object.lightColor) == "table" then
+ -- drop(object.lightColor)
+ -- return object
+ --elseif type(object.lightColors) == "table" then
+ -- for i, v in pairs(object.lightColors) do
+ -- drop(v)
+ -- end
+ -- return object
end
end \ No newline at end of file