From 81dc6a7688b84f63d47cff7266bf431df7379304 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Sun, 15 Aug 2021 22:27:46 -0700 Subject: [PATCH] Define normal_attrib when not using octahedral compression in GLES3 --- drivers/gles3/shaders/scene.glsl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index 18a287826c6..d8fa413ddb4 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/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