After a few hours of modifying code, I got it to work with a tower defense game I'm making. I have next to no experience with LÖVE but it was super easy to implement!

Code: Select all
Error
light.lua:90: Value size of 2 does not match variable size of 3.
Traceback
[C]: in function 'send'
light.lua:90: in function 'update'
main.lua:49: in function 'draw'
[C]: in function 'xpcall'
Code: Select all
lightMouse.setPosition(love.mouse.getX(), love.mouse.getY())
It also happens when z is 0. I don't really know how the shader works yet, but I assume the shadow just isn't drawn far enough because it has a restriction on how big the surface of the shadow can be, or something similar to that.davisdude wrote:I think that could be the "z-level" of the light- imagine a sunrise. The light is "peaking" over the top of the box.
Or it could just be a bug.
This problem is fixed now.Luke100000 wrote:I found here an error: if light is exatly near a small object, there will be a strange shadow.
WetDesertRock wrote:You will need to use lightWorld.setTranslation() if you are using love's translation. Some more information around here: viewtopic.php?f=5&t=77418&start=20#p164433
Users browsing this forum: Bing [Bot], Hydrogen Maniac and 8 guests