Fixed a bug where normals scaled with model scale. Again.

This commit is contained in:
Tleety
2016-02-02 16:11:03 +01:00
parent b131f56f5e
commit 12a181c1ff
2 changed files with 26 additions and 23 deletions
+1
View File
@@ -119,6 +119,7 @@ void main()
vec4 specularTexel = texture2D(SpecularMapTexture, Input.TextureCoordinate);
vec4 position = V * M * vec4(Input.Position, 1.0);
vec4 normal = V * CalcNormalMappedValue(Input.Normal, Input.Tangent, Input.BiTangent, Input.TextureCoordinate, NormalMapTexture);
normal = normalize(normal);
//vec4 normal = normalize(V * vec4(Input.Normal, 0.0));
vec4 viewVec = normalize(-position);