Explorar o código

GLES2: Fix typo in tangent calculation

Thanks @tagcup for the find.

Fixes #23234.
Rémi Verschelde %!s(int64=6) %!d(string=hai) anos
pai
achega
053da2b487
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/gles2/shaders/scene.glsl

+ 1 - 1
drivers/gles2/shaders/scene.glsl

@@ -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