OpenGL and top down 2d lighting?

Hey JGO,

I was wondering if anyone here knows how to do a “fake lighting” effect in OpenGL?

At the moment I’m raycasting rays in all directions from the centre of the player, making a list of the hit vertexes and drawing a TriangleFan with those vertexes.

I was wondering if anyone knew a better approach to this?

Thanks in advance!