Explorar o código

Merge pull request #51714 from clayjohn/GLES3-normal-blend

Define normal_attrib when not using octahedral compression in GLES3
Rémi Verschelde %!s(int64=4) %!d(string=hai) anos
pai
achega
237adfac9d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/gles3/shaders/scene.glsl

+ 2 - 0
drivers/gles3/shaders/scene.glsl

@@ -27,6 +27,8 @@ layout(location = 0) in highp vec4 vertex_attrib;
 /* clang-format on */
 #ifdef ENABLE_OCTAHEDRAL_COMPRESSION
 layout(location = 1) in vec4 normal_tangent_attrib;
+#else
+layout(location = 1) in vec3 normal_attrib;
 #endif
 #if defined(ENABLE_TANGENT_INTERP) || defined(ENABLE_NORMALMAP) || defined(LIGHT_USE_ANISOTROPY)
 #ifdef ENABLE_OCTAHEDRAL_COMPRESSION