ecere/gfx/3D; drivers/OpenGL: Clarified and fixed behavior of positional lights
authorJerome St-Louis <jerome@ecere.com>
Fri, 15 Jul 2016 07:01:10 +0000 (03:01 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 28 Jul 2016 21:35:44 +0000 (17:35 -0400)
commitcbe55ce626caabcee0cf59c217ad0f536608e00a
tree1667ce316c4f4fff84f12888888df515a2c1d8b6
parent8b9d8ce142a352d0ff57092adb78b5957071ec5a
ecere/gfx/3D; drivers/OpenGL: Clarified and fixed behavior of positional lights
- 'direction' always means light direction, not position, regardless of having a target or not
- 3DS 'omni' light now sets GL_SPOT_DIRECTION even if flags.spot is off
- Fixed consistency issue for non-spot light not subtracting camera position
- Updated samples/3D/ColorSpheres
ecere/src/gfx/3D/Object.ec
ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
samples/3D/ColorSpheres/colorSpheres.ec