You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #107893 from beicause/mobile-fix-vertex-color-writing
Vulkan Mobile: Fix writing vertex color in spatial shader
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user