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})