Fix #130774: Overlay-Next: Edit Mesh Weights
Ensure all framebuffer attachments are written to. Pull Request: https://projects.blender.org/blender/blender/pulls/130912
This commit is contained in:
@@ -286,6 +286,7 @@ VERTEX_IN(0, VEC3, pos)
|
||||
VERTEX_IN(1, FLOAT, weight)
|
||||
SAMPLER(0, FLOAT_1D, weightTex)
|
||||
FRAGMENT_OUT(0, VEC4, fragColor)
|
||||
FRAGMENT_OUT(1, VEC4, lineOutput)
|
||||
VERTEX_OUT(overlay_edit_mesh_analysis_iface)
|
||||
VERTEX_SOURCE("overlay_edit_mesh_analysis_vert.glsl")
|
||||
FRAGMENT_SOURCE("overlay_edit_mesh_analysis_frag.glsl")
|
||||
|
||||
@@ -146,6 +146,7 @@ SAMPLER(0, FLOAT_1D, colorramp)
|
||||
PUSH_CONSTANT(FLOAT, opacity) /* `1.0` by default. */
|
||||
PUSH_CONSTANT(BOOL, drawContours) /* `false` by default. */
|
||||
FRAGMENT_OUT(0, VEC4, fragColor)
|
||||
FRAGMENT_OUT(1, VEC4, lineOutput)
|
||||
VERTEX_SOURCE("overlay_paint_weight_vert.glsl")
|
||||
FRAGMENT_SOURCE("overlay_paint_weight_frag.glsl")
|
||||
ADDITIONAL_INFO(draw_modelmat)
|
||||
|
||||
@@ -5,4 +5,5 @@
|
||||
void main()
|
||||
{
|
||||
fragColor = weightColor;
|
||||
lineOutput = vec4(0.0);
|
||||
}
|
||||
|
||||
@@ -99,4 +99,5 @@ void main()
|
||||
}
|
||||
|
||||
fragColor = vec4(color.rgb, opacity);
|
||||
lineOutput = vec4(0.0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user