mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-11 01:14:26 +00:00
normal mesh shadows can be drawn even if the item isnt a image
This commit is contained in:
parent
bebeba9d5e
commit
64d8613549
@ -452,7 +452,7 @@ function body:drawShadow(light)
|
||||
end
|
||||
|
||||
function body:drawPixelShadow()
|
||||
if self.type == "image" and self.normalMesh then
|
||||
if self.normalMesh then
|
||||
love.graphics.setColor(255, 255, 255)
|
||||
love.graphics.draw(self.normalMesh, self.x - self.nx, self.y - self.ny)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user