1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Ensure uv2_attrib(_input) is available when rendering lightmap.

This commit is contained in:
Bastiaan Olij
2025-10-10 14:17:34 +11:00
parent 295e465fe4
commit 3a003b2d96

View File

@@ -560,7 +560,7 @@ void vertex_shader(vec4 vertex_angle_attrib_input,
#if defined(UV_USED) #if defined(UV_USED)
vec2 uv_attrib_input, vec2 uv_attrib_input,
#endif #endif
#if defined(UV2_USED) || defined(USE_LIGHTMAP) #if defined(UV2_USED) || defined(USE_LIGHTMAP) || defined(RENDER_MATERIAL)
vec2 uv2_attrib_input, vec2 uv2_attrib_input,
#endif #endif
#ifdef USE_MULTIVIEW #ifdef USE_MULTIVIEW
@@ -915,7 +915,7 @@ void main() {
#if defined(UV_USED) #if defined(UV_USED)
uv_attrib, uv_attrib,
#endif #endif
#if defined(UV2_USED) || defined(USE_LIGHTMAP) #if defined(UV2_USED) || defined(USE_LIGHTMAP) || defined(RENDER_MATERIAL)
uv2_attrib, uv2_attrib,
#endif #endif
#ifdef USE_MULTIVIEW #ifdef USE_MULTIVIEW
@@ -948,7 +948,7 @@ void main() {
#if defined(UV_USED) #if defined(UV_USED)
uv_attrib, uv_attrib,
#endif #endif
#if defined(UV2_USED) || defined(USE_LIGHTMAP) #if defined(UV2_USED) || defined(USE_LIGHTMAP) || defined(RENDER_MATERIAL)
uv2_attrib, uv2_attrib,
#endif #endif
#ifdef USE_MULTIVIEW #ifdef USE_MULTIVIEW