GLSL Vertex Lighting
BlitzMax Forums/OpenGL Module/GLSL Vertex Lighting
| ||
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 |
| ||
in the vertex shader, you need a vector from the light to the point, not just the light position. |