Fixed normal lighting rotation

Former-commit-id: 06c71dd9d5ee90fa9d3fbce8e87dcff6b8a455d9
This commit is contained in:
Lynix 2013-03-02 19:06:24 +01:00
parent 636b9d3f50
commit 2f85b258e9
1 changed files with 3 additions and 3 deletions

View File

@ -369,9 +369,9 @@ namespace
{ {
sourceCode += "\n" sourceCode += "\n"
"vec3 binormal = cross(VertexNormal, VertexTangent);\n" "vec3 binormal = cross(VertexNormal, VertexTangent);\n"
"vLightToWorld[0] = normalize(VertexTangent * rotationMatrix);\n" "vLightToWorld[0] = normalize(rotationMatrix * VertexTangent);\n"
"vLightToWorld[1] = normalize(binormal * rotationMatrix);\n" "vLightToWorld[1] = normalize(rotationMatrix * binormal);\n"
"vLightToWorld[2] = normalize(VertexNormal * rotationMatrix);\n" "vLightToWorld[2] = normalize(rotationMatrix * VertexNormal);\n"
"\n"; "\n";
} }
else else