Skip to content

Commit 88b9932

Browse files
committed
Merge pull request #107893 from beicause/mobile-fix-vertex-color-writing
Vulkan Mobile: Fix writing vertex color in spatial shader
2 parents 97f4b8a + ea75954 commit 88b9932

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

servers/rendering/renderer_rd/shaders/forward_mobile/scene_forward_mobile.glsl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,6 @@ void vertex_shader(in vec3 vertex,
380380
model_normal_matrix = model_normal_matrix * mat3(matrix);
381381
}
382382

383-
#if defined(COLOR_USED)
384-
color_interp = hvec4(color_highp);
385-
#endif
386-
387383
#ifdef UV_USED
388384
uv_interp = uv_attrib;
389385
#endif
@@ -445,6 +441,10 @@ void vertex_shader(in vec3 vertex,
445441
#CODE : VERTEX
446442
}
447443

444+
#if defined(COLOR_USED)
445+
color_interp = hvec4(color_highp);
446+
#endif
447+
448448
half roughness = half(roughness_highp);
449449

450450
// using local coordinates (default)

0 commit comments

Comments
 (0)