Vulkan Mobile: Fix writing vertex color in spatial shader

This commit is contained in:
LuoZhihao
2025-06-23 21:30:48 +08:00
parent 242b8ff80a
commit ea75954575

View File

@ -380,10 +380,6 @@ void vertex_shader(in vec3 vertex,
model_normal_matrix = model_normal_matrix * mat3(matrix);
}
#if defined(COLOR_USED)
color_interp = hvec4(color_highp);
#endif
#ifdef UV_USED
uv_interp = uv_attrib;
#endif
@ -445,6 +441,10 @@ void vertex_shader(in vec3 vertex,
#CODE : VERTEX
}
#if defined(COLOR_USED)
color_interp = hvec4(color_highp);
#endif
half roughness = half(roughness_highp);
// using local coordinates (default)