Specular lighting now working correctly with the deferred lighting

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4051
This commit is contained in:
kearwood
2012-04-20 00:48:23 +00:00
parent 6c76335d9e
commit b2c67f5276
3 changed files with 10 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ std::string KRDirectionalLight::getElementName() {
KRVector3 KRDirectionalLight::getLightDirection() {
KRVector3 world_rotation = getWorldRotation();
KRVector3 light_rotation = KRVector3(0.0, -1.0, 0.0);
KRVector3 light_rotation = KRVector3(0.0, 0.0, 1.0);
KRMat4 m;
m.rotate(world_rotation.x, X_AXIS);
m.rotate(world_rotation.y, Y_AXIS);