Finally fixed terrain lighting!

Fixed up my lighting including with normal-mapping enabled. Lots of little bugs here and there. The other issue I had is that my normal map had transparency which I didn’t know how to deal with so I flattened it and replaced it with a light blue as most sources seem to have. The lighting matches what it looks like now without the normal map after fixing. Viewing things from the light’s perspective is very instructive and was wrong for the longest time. Also, the position of the light seems to have had a big effect, moving it out from near the center seems to have helped immensely. Performance on my MacbookAir is still a horrible issue though…

Ibex OpenGL 3.3+ for the Mac fixed lighting with normal maps 1

Ibex OpenGL 3.3+ for the Mac fixed lighting with normal maps 2

Ibex OpenGL 3.3+ for the Mac from light's perspective 1

Ibex OpenGL 3.3+ for the Mac from light's perspective 2

Ibex OpenGL 3.3+ for the Mac from light's perspective 3