Simple lighting solution?
Posted: Fri Nov 11, 2016 5:40 pm
Thanks in advance for any help. I am writing a simple tile based game and would like to implement a "lighting" system. Basically, I want the world to be darker and then have torches, lights, whatever, that will put out light and illuminate the surrounding area. Is there a simple way to accomplish this without implementing shaders and getting more complex? I've done some searching and it seems like most people are using fairly complex shader libraries to accomplish this. I feel like there has to be a simpler way if I'm not interested in shadows and perfection.
I am using this simple code to darken the world:
and I have that at the beginning of my draw calls.
Thanks for any help!
I am using this simple code to darken the world:
Code: Select all
love.graphics.setBlendMode("alpha")
love.graphics.setColor(50,50,50)
Thanks for any help!