I made this topic on gamedev.net, but if I do get a responce, it could take days:
http://www.gamedev.net/topic/651856-issues-with-lighting-in-opengl-4/Basically I'm making a game that uses OpenGL 4 and I've made some stuff including a heightmap loader and a model loader that seem to work fine.
Now my next hurdle is making convincing lighting.
I'm prepared to give up whatever code could assist a potential helper, but for now I've just posted the two shaders themselves.
Also, on that link is my heightmap loading function.
Basically my problem is that the lights just aren't working on the terrain. (They do better with models, but problems are still present)
A light (the cube) close to terrain.
A further away look at the same. The light appears much brighter.
For comparison and contrast here is a blue and yellow light a bit above the terrain:
I have no idea what the forget is going on here. But the yellow light seems to be doing a bit better, though I doubt it has to do with its color.