I think I have discovered. At least, how to use this correctly with transformation.Some other people have had problem on this, so maybe you add a note or a example that teaches the proper way to use when you also want to use transformations. You have to call any transformation inside the drawing operation of a shine effect. Maybe it's trivial for more experienced programmers, but it wasn't clear for me at all and surely won't be clear for newbies programmers like me
for example:
Code: Select all
love.graphics.translate(tx, ty)
grain:draw(function()
something()
end)
this will bug if translate change a lot, but:
Code: Select all
grain:draw(function()
love.graphics.translate(tx, ty)
something()
end)
this will be fine if there's no type of transformation outside.