mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +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
|
end
|
||||||
|
|
||||||
function body:drawPixelShadow()
|
function body:drawPixelShadow()
|
||||||
if self.type == "image" and self.normalMesh then
|
if self.normalMesh then
|
||||||
love.graphics.setColor(255, 255, 255)
|
love.graphics.setColor(255, 255, 255)
|
||||||
love.graphics.draw(self.normalMesh, self.x - self.nx, self.y - self.ny)
|
love.graphics.draw(self.normalMesh, self.x - self.nx, self.y - self.ny)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user