Don't flip NV PPL shader Y axis erroneously

pull/593/head
Dobrohotov Alexei 4 years ago
parent 7f7041656d
commit ad5ee1aa1c

@ -56,8 +56,6 @@ void main()
#if @normalMap #if @normalMap
vec4 normalTex = texture2D(normalMap, normalMapUV); vec4 normalTex = texture2D(normalMap, normalMapUV);
// Must flip Y for DirectX format normal maps
normalTex.y = 1.0 - normalTex.y;
vec3 normalizedNormal = normalize(passNormal); vec3 normalizedNormal = normalize(passNormal);
vec3 normalizedTangent = normalize(passTangent.xyz); vec3 normalizedTangent = normalize(passTangent.xyz);

Loading…
Cancel
Save