GLSL Vertex Lighting

BlitzMax Forums/OpenGL Module/GLSL Vertex Lighting

BLaBZ(Posted 2012) [#1]
I think I'm missing something here...

I'm trying to do some simple vertex lighting but I think there's something wrong with the normals yet I'm not sure.

shaders -
http://www.infotread.com/downloads/vertexlightingvert.txt
http://www.infotread.com/downloads/vertexlightingfrag.txt




AdamRedwoods(Posted 2012) [#2]
in the vertex shader, you need a vector from the light to the point, not just the light position.