From c9fac640d70b134593bf3ffaeb9bb68befe9cca5 Mon Sep 17 00:00:00 2001 From: Tim Anema Date: Fri, 24 Oct 2014 13:34:44 -0400 Subject: [PATCH] made the range adhere to the scale as well --- lib/light.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/light.lua b/lib/light.lua index 6681633..2afe867 100644 --- a/lib/light.lua +++ b/lib/light.lua @@ -146,7 +146,7 @@ function light:drawShadow(l,t,w,h,s,bodies, canvas) self.shadow:clear() util.drawto(self.shadow, l, t, s, function() self.shader:send("lightPosition", {self.x*s, (h/s - self.y)*s, self.z}) - self.shader:send("lightRange", self.range) + self.shader:send("lightRange", self.range*s) self.shader:send("lightColor", {self.red / 255.0, self.green / 255.0, self.blue / 255.0}) self.shader:send("lightSmooth", self.smooth) self.shader:send("lightGlow", {1.0 - self.glowSize, self.glowStrength})