Blender V5.3
blender::ed::sculpt_paint::color Namespace Reference

Classes

struct  ColorPaintLocalData
struct  LocalData
struct  SampleWetPaintData

Enumerations

enum class  FilterType {
  Fill = 0 , Hue , Saturation , Value ,
  Brightness , Contrast , Red , Green ,
  Blue , Smooth
}

Functions

void swap_gathered_colors (Span< int > indices, GMutableSpan color_attribute, MutableSpan< float4 > r_colors)
void gather_colors (GSpan color_attribute, Span< int > indices, MutableSpan< float4 > r_colors)
void gather_colors_vert (OffsetIndices< int > faces, Span< int > corner_verts, GroupedSpan< int > vert_to_face_map, GSpan color_attribute, bke::AttrDomain color_domain, Span< int > verts, MutableSpan< float4 > r_colors)
void color_vert_set (OffsetIndices< int > faces, Span< int > corner_verts, GroupedSpan< int > vert_to_face_map, bke::AttrDomain color_domain, int vert, const float4 &color, GMutableSpan color_attribute)
float4 color_vert_get (OffsetIndices< int > faces, Span< int > corner_verts, GroupedSpan< int > vert_to_face_map, GSpan color_attribute, bke::AttrDomain color_domain, int vert)
float4 color_corner_get (const GSpan color_attribute, int corner_index)
bke::GAttributeReader active_color_attribute (const Mesh &mesh)
bke::GSpanAttributeWriter active_color_attribute_for_write (Mesh &mesh)
void do_paint_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask)
void do_smear_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask)
void do_blur_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask)
static float3 fill_color_resolve_from_paint (const bContext *C, const bool use_secondary_color)
static float3 fill_color_resolve (const bContext *C, wmOperator *op, const bool use_secondary_color)
static void fill_color_store_current (const bContext *C, wmOperator *op)
static BLI_NOINLINE void clamp_factors (const MutableSpan< float > factors, const float min, const float max)
static void color_filter_task (const Depsgraph &depsgraph, Object &ob, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const FilterType mode, const float filter_strength, const float3 &filter_fill_color, const bke::pbvh::MeshNode &node, LocalData &tls, bke::GSpanAttributeWriter &color_attribute)
static void sculpt_color_presmooth_init (const Mesh &mesh, Object &object)
static void sculpt_color_filter_apply (bContext *C, wmOperator *op, Object &ob)
static void sculpt_color_filter_end (bContext *C, wmOperator *op, Object &ob)
static wmOperatorStatus sculpt_color_filter_modal (bContext *C, wmOperator *op, const wmEvent *event)
static int sculpt_color_filter_init (bContext *C, wmOperator *op)
static wmOperatorStatus sculpt_color_filter_exec (bContext *C, wmOperator *op)
static wmOperatorStatus sculpt_color_filter_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static std::string sculpt_color_filter_get_name (wmOperatorType *, PointerRNA *ptr)
static void sculpt_color_filter_ui (bContext *, wmOperator *op)
void SCULPT_OT_color_filter (wmOperatorType *ot)
template<typename Func>
void to_static_color_type (const CPPType &type, const Func &func)
template<typename T>
float4 to_float (const T &src)
template<>
float4 to_float (const MLoopCol &src)
template<>
float4 to_float (const MPropCol &src)
template<typename T>
void from_float (const float4 &src, T &dst)
template<>
void from_float (const float4 &src, MLoopCol &dst)
template<>
void from_float (const float4 &src, MPropCol &dst)
template<typename T>
static float4 color_vert_get (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const GSpan color_attribute, const bke::AttrDomain color_domain, const int vert)
template<typename T>
static void color_vert_set (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const GMutableSpan color_attribute, const bke::AttrDomain color_domain, const int vert, const float4 &color)
static void do_color_smooth_task (const Depsgraph &depsgraph, const Object &object, const Span< float3 > vert_positions, const Span< float3 > vert_normals, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const Brush &brush, const bke::pbvh::MeshNode &node, ColorPaintLocalData &tls, bke::GSpanAttributeWriter &color_attribute)
static void do_paint_brush_task (const Depsgraph &depsgraph, Object &object, const Span< float3 > vert_positions, const Span< float3 > vert_normals, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const Paint &paint, const Brush &brush, const float4x4 &mat, const float4 wet_mix_sampled_color, bke::pbvh::MeshNode &node, ColorPaintLocalData &tls, const MutableSpan< float4 > mix_colors, bke::GSpanAttributeWriter &color_attribute)
static void do_sample_wet_paint_task (const Depsgraph &depsgraph, const Object &object, const Span< float3 > vert_positions, const Span< float3 > vert_normals, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const GSpan color_attribute, const bke::AttrDomain color_domain, const Brush &brush, const bke::pbvh::MeshNode &node, ColorPaintLocalData &tls, SampleWetPaintData &swptd)
static void do_smear_brush_task (const Depsgraph &depsgraph, Object &object, const Span< float3 > vert_positions, const Span< float3 > vert_normals, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const Brush &brush, bke::pbvh::MeshNode &node, ColorPaintLocalData &tls, bke::GSpanAttributeWriter &color_attribute)

Variables

static const float fill_filter_default_color [4] = {1.0f, 1.0f, 1.0f, 1.0f}
static EnumPropertyItem prop_color_filter_types []

Enumeration Type Documentation

◆ FilterType

Enumerator
Fill 
Hue 
Saturation 
Value 
Brightness 
Contrast 
Red 
Green 
Blue 
Smooth 

Definition at line 54 of file sculpt_filter_color.cc.

Function Documentation

◆ active_color_attribute()

◆ active_color_attribute_for_write()

◆ clamp_factors()

BLI_NOINLINE void blender::ed::sculpt_paint::color::clamp_factors ( const MutableSpan< float > factors,
const float min,
const float max )
static

Definition at line 131 of file sculpt_filter_color.cc.

References BLI_NOINLINE, clamp_factors(), max, and min.

Referenced by clamp_factors(), and color_filter_task().

◆ color_corner_get()

float4 blender::ed::sculpt_paint::color::color_corner_get ( const GSpan color_attribute,
int corner_index )

◆ color_filter_task()

void blender::ed::sculpt_paint::color::color_filter_task ( const Depsgraph & depsgraph,
Object & ob,
const OffsetIndices< int > faces,
const Span< int > corner_verts,
const GroupedSpan< int > vert_to_face_map,
const MeshAttributeData & attribute_data,
const FilterType mode,
const float filter_strength,
const float3 & filter_fill_color,
const bke::pbvh::MeshNode & node,
LocalData & tls,
bke::GSpanAttributeWriter & color_attribute )
static

Definition at line 140 of file sculpt_filter_color.cc.

References blender::ed::sculpt_paint::filter::Cache::automasking, blender::blend_color_interpolate_float(), blender::blend_color_mix_float(), Blue, Brightness, blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::calc_vert_neighbors(), blender::math::clamp(), clamp_factors(), color_filter_task(), color_vert_get(), color_vert_set(), Contrast, blender::copy_v3_v3(), blender::copy_v4_v4(), blender::bke::GSpanAttributeWriter::domain, fabs(), Fill, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::SculptSession::filter_cache, FLT_EPSILON, fmod(), Green, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::hsv_to_rgb_v(), Hue, blender::Span< T >::index_range(), blender::interp_v4_v4v4(), blender::madd_v4_v4fl(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::mul_v4_fl(), blender::ed::sculpt_paint::smooth::neighbor_color_average(), blender::ed::sculpt_paint::color::LocalData::neighbor_data, blender::ed::sculpt_paint::color::LocalData::neighbor_offsets, node, blender::ed::sculpt_paint::orig_color_data_get_mesh(), blender::ed::sculpt_paint::filter::Cache::pre_smoothed_color, Red, blender::rgb_to_hsv_v(), blender::Object::runtime, Saturation, blender::ed::sculpt_paint::scale_factors(), blender::bke::ObjectRuntime::sculpt_session, blender::Span< T >::size(), Smooth, blender::bke::GSpanAttributeWriter::span, and Value.

Referenced by color_filter_task(), and sculpt_color_filter_apply().

◆ color_vert_get() [1/2]

template<typename T>
float4 blender::ed::sculpt_paint::color::color_vert_get ( const OffsetIndices< int > faces,
const Span< int > corner_verts,
const GroupedSpan< int > vert_to_face_map,
const GSpan color_attribute,
const bke::AttrDomain color_domain,
const int vert )
static

◆ color_vert_get() [2/2]

◆ color_vert_set() [1/2]

template<typename T>
void blender::ed::sculpt_paint::color::color_vert_set ( const OffsetIndices< int > faces,
const Span< int > corner_verts,
const GroupedSpan< int > vert_to_face_map,
const GMutableSpan color_attribute,
const bke::AttrDomain color_domain,
const int vert,
const float4 & color )
static

◆ color_vert_set() [2/2]

◆ do_blur_brush()

◆ do_color_smooth_task()

void blender::ed::sculpt_paint::color::do_color_smooth_task ( const Depsgraph & depsgraph,
const Object & object,
const Span< float3 > vert_positions,
const Span< float3 > vert_normals,
const OffsetIndices< int > faces,
const Span< int > corner_verts,
const GroupedSpan< int > vert_to_face_map,
const MeshAttributeData & attribute_data,
const Brush & brush,
const bke::pbvh::MeshNode & node,
ColorPaintLocalData & tls,
bke::GSpanAttributeWriter & color_attribute )
static

Definition at line 267 of file sculpt_paint_color.cc.

References blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::blend_color_interpolate_float(), blender::BRUSH_FRONTFACE, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::calc_brush_texture_factors(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::calc_vert_neighbors(), color_vert_get(), color_vert_set(), blender::ed::sculpt_paint::color::ColorPaintLocalData::colors, blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_color_smooth_task(), blender::bke::GSpanAttributeWriter::domain, blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::smooth::neighbor_color_average(), blender::ed::sculpt_paint::color::ColorPaintLocalData::neighbor_data, blender::ed::sculpt_paint::color::ColorPaintLocalData::neighbor_offsets, blender::ed::sculpt_paint::color::ColorPaintLocalData::new_colors, node, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::Sculpt, blender::Span< T >::size(), blender::bke::GSpanAttributeWriter::span, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.

Referenced by do_blur_brush(), and do_color_smooth_task().

◆ do_paint_brush()

◆ do_paint_brush_task()

void blender::ed::sculpt_paint::color::do_paint_brush_task ( const Depsgraph & depsgraph,
Object & object,
const Span< float3 > vert_positions,
const Span< float3 > vert_normals,
const OffsetIndices< int > faces,
const Span< int > corner_verts,
const GroupedSpan< int > vert_to_face_map,
const MeshAttributeData & attribute_data,
const Paint & paint,
const Brush & brush,
const float4x4 & mat,
const float4 wet_mix_sampled_color,
bke::pbvh::MeshNode & node,
ColorPaintLocalData & tls,
const MutableSpan< float4 > mix_colors,
bke::GSpanAttributeWriter & color_attribute )
static

Definition at line 350 of file sculpt_paint_color.cc.

References blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::MutableSpan< T >::as_span(), blender::ed::sculpt_paint::color::ColorPaintLocalData::auto_mask, blender::ed::sculpt_paint::StrokeCache::automasking, blender::BKE_brush_alpha_get(), blender::BKE_brush_calc_curve_factors(), blender::BKE_brush_color_get(), blender::BKE_brush_color_jitter_get_settings(), blender::BKE_brush_has_cube_tip(), blender::BKE_brush_secondary_color_get(), blender::BKE_colorband_evaluate(), blender::BKE_paint_randomize_color(), blender::blend_color_interpolate_float(), blender::blend_color_mix_float(), blender::BLI_assert(), blender::BLI_hash_int_01(), blender::BRUSH_FRONTFACE, blender::BRUSH_GRADIENT_PRESSURE, blender::BRUSH_GRADIENT_SPACING_CLAMP, blender::BRUSH_GRADIENT_SPACING_REPEAT, blender::BRUSH_USE_GRADIENT, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_cube_distances(), blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_texture_factors(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::calc_local_positions(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::math::clamp(), color_vert_get(), color_vert_set(), blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_paint_brush_task(), blender::bke::GSpanAttributeWriter::domain, fabsf, blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), fmod(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::IMB_blend_color_float(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::StrokeCache::initial_hsv_jitter, blender::ed::sculpt_paint::StrokeToggleSettings::invert, blender::ed::sculpt_paint::StrokeCache::location_symm, blender::ed::sculpt_paint::MeshAttributeData::mask, blender::ed::sculpt_paint::color::ColorPaintLocalData::new_colors, node, blender::ed::sculpt_paint::orig_color_data_get_mesh(), blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::ed::sculpt_paint::color::ColorPaintLocalData::positions, blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::Sculpt, blender::Span< T >::size(), blender::bke::GSpanAttributeWriter::span, blender::ed::sculpt_paint::StrokeCache::stroke_distance, blender::ed::sculpt_paint::StrokeCache::toggle_settings, and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.

Referenced by do_paint_brush_task().

◆ do_sample_wet_paint_task()

void blender::ed::sculpt_paint::color::do_sample_wet_paint_task ( const Depsgraph & depsgraph,
const Object & object,
const Span< float3 > vert_positions,
const Span< float3 > vert_normals,
const OffsetIndices< int > faces,
const Span< int > corner_verts,
const GroupedSpan< int > vert_to_face_map,
const MeshAttributeData & attribute_data,
const GSpan color_attribute,
const bke::AttrDomain color_domain,
const Brush & brush,
const bke::pbvh::MeshNode & node,
ColorPaintLocalData & tls,
SampleWetPaintData & swptd )
static

◆ do_smear_brush()

◆ do_smear_brush_task()

void blender::ed::sculpt_paint::color::do_smear_brush_task ( const Depsgraph & depsgraph,
Object & object,
const Span< float3 > vert_positions,
const Span< float3 > vert_normals,
const OffsetIndices< int > faces,
const Span< int > corner_verts,
const GroupedSpan< int > vert_to_face_map,
const MeshAttributeData & attribute_data,
const Brush & brush,
bke::pbvh::MeshNode & node,
ColorPaintLocalData & tls,
bke::GSpanAttributeWriter & color_attribute )
static

Definition at line 692 of file sculpt_paint_color.cc.

References blender::ed::sculpt_paint::apply_hardness_to_distances(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::blend_color_interpolate_float(), blender::BRUSH_FRONTFACE, blender::BRUSH_SMEAR_DEFORM_DRAG, blender::BRUSH_SMEAR_DEFORM_EXPAND, blender::BRUSH_SMEAR_DEFORM_PINCH, blender::BRUSH_STROKE_ANCHORED, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::calc_brush_distances(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::calc_brush_texture_factors(), blender::ed::sculpt_paint::calc_front_face(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), color_vert_get(), color_vert_set(), blender::math::distance(), blender::ed::sculpt_paint::color::ColorPaintLocalData::distances, do_smear_brush_task(), blender::bke::GSpanAttributeWriter::domain, blender::math::dot(), fabsf, blender::ed::sculpt_paint::color::ColorPaintLocalData::factors, blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::filter_distances_with_radius(), blender::ed::sculpt_paint::filter_region_clip_factors(), blender::ed::sculpt_paint::StrokeCache::grab_delta_symm, blender::ed::sculpt_paint::MeshAttributeData::hide_poly, blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::Span< T >::index_range(), blender::ed::sculpt_paint::StrokeCache::last_location_symm, len(), blender::math::length(), blender::ed::sculpt_paint::StrokeCache::location_symm, blender::ed::sculpt_paint::MeshAttributeData::mask, node, blender::math::normalize(), blender::ed::sculpt_paint::StrokeCache::paint_brush, blender::ed::sculpt_paint::StrokeCache::radius, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::Sculpt, blender::Span< T >::size(), blender::bke::GSpanAttributeWriter::span, blender::ed::sculpt_paint::vert_neighbors_get_mesh(), blender::ed::sculpt_paint::StrokeCache::view_normal_symm, and w().

Referenced by do_smear_brush_task().

◆ fill_color_resolve()

float3 blender::ed::sculpt_paint::color::fill_color_resolve ( const bContext * C,
wmOperator * op,
const bool use_secondary_color )
static

◆ fill_color_resolve_from_paint()

◆ fill_color_store_current()

void blender::ed::sculpt_paint::color::fill_color_store_current ( const bContext * C,
wmOperator * op )
static

◆ from_float() [1/3]

template<>
void blender::ed::sculpt_paint::color::from_float ( const float4 & src,
MLoopCol & dst )

◆ from_float() [2/3]

template<>
void blender::ed::sculpt_paint::color::from_float ( const float4 & src,
MPropCol & dst )

◆ from_float() [3/3]

template<typename T>
void blender::ed::sculpt_paint::color::from_float ( const float4 & src,
T & dst )

References from_float(), and T.

Referenced by color_vert_set(), from_float(), from_float(), and from_float().

◆ gather_colors()

void blender::ed::sculpt_paint::color::gather_colors ( GSpan color_attribute,
Span< int > indices,
MutableSpan< float4 > r_colors )

◆ gather_colors_vert()

void blender::ed::sculpt_paint::color::gather_colors_vert ( OffsetIndices< int > faces,
Span< int > corner_verts,
GroupedSpan< int > vert_to_face_map,
GSpan color_attribute,
bke::AttrDomain color_domain,
Span< int > verts,
MutableSpan< float4 > r_colors )

◆ sculpt_color_filter_apply()

◆ sculpt_color_filter_end()

◆ sculpt_color_filter_exec()

◆ sculpt_color_filter_get_name()

std::string blender::ed::sculpt_paint::color::sculpt_color_filter_get_name ( wmOperatorType * ,
PointerRNA * ptr )
static

◆ sculpt_color_filter_init()

◆ sculpt_color_filter_invoke()

◆ sculpt_color_filter_modal()

◆ sculpt_color_filter_ui()

void blender::ed::sculpt_paint::color::sculpt_color_filter_ui ( bContext * ,
wmOperator * op )
static

◆ sculpt_color_presmooth_init()

◆ SCULPT_OT_color_filter()

◆ swap_gathered_colors()

void blender::ed::sculpt_paint::color::swap_gathered_colors ( Span< int > indices,
GMutableSpan color_attribute,
MutableSpan< float4 > r_colors )

◆ to_float() [1/3]

template<>
float4 blender::ed::sculpt_paint::color::to_float ( const MLoopCol & src)

◆ to_float() [2/3]

template<>
float4 blender::ed::sculpt_paint::color::to_float ( const MPropCol & src)

Definition at line 64 of file sculpt_paint_color.cc.

References blender::MPropCol::color, and to_float().

◆ to_float() [3/3]

template<typename T>
float4 blender::ed::sculpt_paint::color::to_float ( const T & src)

References T, and to_float().

Referenced by color_vert_get(), to_float(), to_float(), and to_float().

◆ to_static_color_type()

template<typename Func>
void blender::ed::sculpt_paint::color::to_static_color_type ( const CPPType & type,
const Func & func )
inline

Variable Documentation

◆ fill_filter_default_color

const float blender::ed::sculpt_paint::color::fill_filter_default_color[4] = {1.0f, 1.0f, 1.0f, 1.0f}
static

Definition at line 67 of file sculpt_filter_color.cc.

Referenced by SCULPT_OT_color_filter().

◆ prop_color_filter_types

EnumPropertyItem blender::ed::sculpt_paint::color::prop_color_filter_types[]
static
Initial value:
= {
{int(FilterType::Fill), "FILL", 0, "Fill", "Fill with a specific color"},
{int(FilterType::Hue), "HUE", 0, "Hue", "Change hue"},
{int(FilterType::Saturation), "SATURATION", 0, "Saturation", "Change saturation"},
{int(FilterType::Value), "VALUE", 0, "Value", "Change value"},
{int(FilterType::Brightness), "BRIGHTNESS", 0, "Brightness", "Change brightness"},
{int(FilterType::Contrast), "CONTRAST", 0, "Contrast", "Change contrast"},
{int(FilterType::Smooth), "SMOOTH", 0, "Smooth", "Smooth colors"},
{int(FilterType::Red), "RED", 0, "Red", "Change red channel"},
{int(FilterType::Green), "GREEN", 0, "Green", "Change green channel"},
{int(FilterType::Blue), "BLUE", 0, "Blue", "Change blue channel"},
{0, nullptr, 0, nullptr, nullptr},
}

Definition at line 108 of file sculpt_filter_color.cc.

Referenced by SCULPT_OT_color_filter().