ecere/gfx/drivers/OpenGL: Fixed two-sided lighting
authorJerome St-Louis <jerome@ecere.com>
Fri, 11 Sep 2015 14:21:03 +0000 (23:21 +0900)
committerJerome St-Louis <jerome@ecere.com>
Thu, 15 Oct 2015 00:26:39 +0000 (20:26 -0400)
commit91081784472032b90731106b9eff9b976581e808
tree841d8e1c301f3571664924cf0cde2509256879f0
parentaca301b653e76454ac75d12356469e0d20dac85a
ecere/gfx/drivers/OpenGL: Fixed two-sided lighting
- Proper calculations checking gl_FrontFacing in the fragment shader
- No need to save compute a separate light, just negate normal
- Including specular higlights for back face as well
ecere/src/gfx/drivers/gl3/fixed.frag
ecere/src/gfx/drivers/gl3/fixed.vertex
ecere/src/gfx/drivers/gl3/matrixStack.ec
ecere/src/gfx/drivers/gl3/shading.ec