Per pixel lighting shader

Hello everyone!



I want per pixel lighting. As far as I've understood this can be accomplished through custom shaders. I just started looking into shaders for this purpose and it seems like a lot of fun. However, I wan't to avoid reinventing the wheel so, has anyone made a per pixel lighting shader?

have a look at



"TestNormalMap.java"



its just for one directional Light, but its a good beginning to look how PPL can work

Yes it gives a pretty good idea. Thanks.



Found some tutorials if anyone else is interested in this:

http://www.lighthouse3d.com/opengl/glsl/index.php