Fixed normal lighting rotation
Former-commit-id: 06c71dd9d5ee90fa9d3fbce8e87dcff6b8a455d9
This commit is contained in:
parent
636b9d3f50
commit
2f85b258e9
|
|
@ -369,9 +369,9 @@ namespace
|
|||
{
|
||||
sourceCode += "\n"
|
||||
"vec3 binormal = cross(VertexNormal, VertexTangent);\n"
|
||||
"vLightToWorld[0] = normalize(VertexTangent * rotationMatrix);\n"
|
||||
"vLightToWorld[1] = normalize(binormal * rotationMatrix);\n"
|
||||
"vLightToWorld[2] = normalize(VertexNormal * rotationMatrix);\n"
|
||||
"vLightToWorld[0] = normalize(rotationMatrix * VertexTangent);\n"
|
||||
"vLightToWorld[1] = normalize(rotationMatrix * binormal);\n"
|
||||
"vLightToWorld[2] = normalize(rotationMatrix * VertexNormal);\n"
|
||||
"\n";
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue