For my isometric 2d application, I would like to introduce ‘fake’ light, i.e. render some objects of the game darker depending on whether they are close to another light-radiating object or not.
I know I could, say, prepare 5 different pixmaps with different shadings before making textures out of them and then using one of these textures depending on the light. But that appears a bit unconvenient and not very efficient to me. So my question is this: Is there some (fast) method to make a (2d) texture for a 2d application darker or lighter when rendering it or maybe even apply, say, a blue color filter?
Thanks a lot for your thoughts.
See ya, Johannes.