From f0f3b8812c460adee71689d50eec282d34ed97ba Mon Sep 17 00:00:00 2001 From: Leonardo Kaplan Date: Sun, 24 Apr 2016 16:09:51 +0200 Subject: [PATCH] ligth y fix --- lib/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/init.lua b/lib/init.lua index 5738fac..130f1a1 100644 --- a/lib/init.lua +++ b/lib/init.lua @@ -156,7 +156,7 @@ function light_world:drawShadows(l,t,w,h,s) end) -- draw scene for this light using normals and shadowmap self.shadowShader:send('lightColor', {light.red / 255.0, light.green / 255.0, light.blue / 255.0}) - self.shadowShader:send("lightPosition", {(light.x + l/s) * s, (h/s - (light.y + t/s)) * s, (light.z * 10) / 255.0}) + self.shadowShader:send("lightPosition", {(light.x + l/s) * s, (light.y + t/s) * s, (light.z * 10) / 255.0}) self.shadowShader:send('lightRange',{light.range * s}) self.shadowShader:send("lightSmooth", light.smooth) self.shadowShader:send("lightGlow", {1.0 - light.glowSize, light.glowStrength})