Hello Guest

Need help with implementing Light sources in a 2D tile based game.

  • 0 Replies
  • 87 Views
Hi
So I'm working on a 2-D tile based and I wanted to implement point light sources in it.
Since I'm not using shaders (because i'm using fixed function pipeline) I have no idea as to how do I implement it.

Is there a way in fixed function pipeline to add lighting? I tried one but it blackened my screen, probably because I'm not defining normals.

So now I rendered all the game in a FBO and then finally i'm rendering the texture of FBO, so that I can use a lightmap to adjust alpha channles of pixels around the light source but again I have no idea how to do this without using fragment shaders.

Any suggestion is appreciated.