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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user