ecere/gfx/drivers/OpenGL/Shaders: Support for Specular, Spotlights, Attenuation
authorJerome St-Louis <jerome@ecere.com>
Fri, 15 Jul 2016 07:19:33 +0000 (03:19 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 28 Jul 2016 21:35:45 +0000 (17:35 -0400)
commit0b257488a3e43e9c6ef4029aef6ef97b4190f6e9
tree060dff4af085845bb782b2b1d0888e83f4a8d21a
parenta3e27a7fa0cca9d58c5626c134495a9b5c9b639e
ecere/gfx/drivers/OpenGL/Shaders: Support for Specular, Spotlights, Attenuation
- Updated positional lights code to reflect recent clarifications
- Reverted to setting separate projection and modelview matrix for specular calculations
- Also included specular fix using dFdx/dFdy in fragment shader
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