Curves: cage overlay for sculpt mode #104467
|
@ -28,7 +28,7 @@ GPU_SHADER_INTERFACE_INFO(overlay_varying_color_wire_iface, "")
|
|||
GPU_SHADER_CREATE_INFO(overlay_varying_color_wire)
|
||||
.do_static_compilation(true)
|
||||
.vertex_in(0, Type::VEC3, "pos")
|
||||
.vertex_in(1, Type::VEC4, "my_color")
|
||||
.vertex_in(1, Type::VEC4, "color")
|
||||
.vertex_out(overlay_varying_color_wire_iface)
|
||||
.fragment_out(0, Type::VEC4, "fragColor")
|
||||
.fragment_out(1, Type::VEC4, "lineOutput")
|
||||
|
|
|
@ -7,7 +7,7 @@ void main()
|
|||
vec3 world_pos = point_object_to_world(pos);
|
||||
gl_Position = point_world_to_ndc(world_pos);
|
||||
|
||||
finalColor = my_color;
|
||||
finalColor = color;
|
||||
finalColor.a *= opacity;
|
||||
|
||||
/* Convert to screen position [0..sizeVp]. */
|
||||
|
|
|
@ -809,7 +809,7 @@ void DRW_curves_batch_cache_create_requested(Object *ob)
|
|||
if (DRW_vbo_requested(cage_cache.cage_point_color)) {
|
||||
static const GPUVertFormat format = [&]() {
|
||||
GPUVertFormat format;
|
||||
GPU_vertformat_attr_add(&format, "my_color", GPU_COMP_U8, 4, GPU_FETCH_INT_TO_FLOAT_UNIT);
|
||||
GPU_vertformat_attr_add(&format, "color", GPU_COMP_U8, 4, GPU_FETCH_INT_TO_FLOAT_UNIT);
|
||||
return format;
|
||||
}();
|
||||
|
||||
|
|
Loading…
Reference in New Issue