Merge pull request #23253 from akien-mga/gles2-tangent-typo

GLES2: Fix typo in tangent calculation
This commit is contained in:
Rémi Verschelde 2018-10-24 14:21:46 +02:00 committed by GitHub
commit 787379199d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -359,7 +359,7 @@ void main() {
normal = normalize((world_matrix * vec4(normal, 0.0)).xyz);
#if defined(ENABLE_TANGENT_INTERP) || defined(ENABLE_NORMALMAP)
tangent = normalize((world_matrix * vec4(tangent, 0.0)), xyz);
tangent = normalize((world_matrix * vec4(tangent, 0.0)).xyz);
binormal = normalize((world_matrix * vec4(binormal, 0.0)).xyz);
#endif
#endif