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>
Fri, 26 Feb 2016 04:25:11 +0000 (23:25 -0500)
commitee18c43f42a65d922b0aa37ca35820a6f6f87c87
treea8d4ccfe7e3e3631bd2a11e54092af4fc5ee978d
parente46a699d5f979b2d9fbf860eca0811fc60adb18e
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