|
Blender V5.0
|
#include <DNA_material_types.h>
Public Attributes | |
| struct Image * | sima |
| struct Image * | ima |
| float | stroke_rgba [4] |
| float | fill_rgba [4] |
| float | mix_rgba [4] |
| short | flag |
| short | index |
| short | stroke_style |
| short | fill_style |
| float | mix_factor |
| float gradient_angle | DNA_DEPRECATED |
| float gradient_radius | DNA_DEPRECATED |
| char | _pad2 [4] |
| float gradient_scale[2] | DNA_DEPRECATED |
| float gradient_shift[2] | DNA_DEPRECATED |
| float | texture_angle |
| float | texture_scale [2] |
| float | texture_offset [2] |
| float texture_opacity | DNA_DEPRECATED |
| float | texture_pixsize |
| int | mode |
| int | gradient_type |
| float | mix_stroke_factor |
| int | alignment_mode |
| float | alignment_rotation |
Definition at line 48 of file DNA_material_types.h.
| char MaterialGPencilStyle::_pad2[4] |
Definition at line 75 of file DNA_material_types.h.
| int MaterialGPencilStyle::alignment_mode |
Mode used to align Dots and Boxes with stroke drawing path and object rotation
Definition at line 99 of file DNA_material_types.h.
Referenced by blender::draw::gpencil::gpencil_material_pool_create().
| float MaterialGPencilStyle::alignment_rotation |
Rotation for texture for Dots and Squares.
Definition at line 101 of file DNA_material_types.h.
Referenced by blender::draw::gpencil::gpencil_material_pool_create().
| float texture_opacity MaterialGPencilStyle::DNA_DEPRECATED |
Texture opacity.
Definition at line 87 of file DNA_material_types.h.
| float gradient_shift [2] MaterialGPencilStyle::DNA_DEPRECATED |
Factor to shift filling in 2d space.
Definition at line 79 of file DNA_material_types.h.
| float gradient_scale [2] MaterialGPencilStyle::DNA_DEPRECATED |
UV coordinates scale.
Definition at line 77 of file DNA_material_types.h.
| float gradient_radius MaterialGPencilStyle::DNA_DEPRECATED |
Radius for radial gradients.
Definition at line 74 of file DNA_material_types.h.
| float gradient_angle MaterialGPencilStyle::DNA_DEPRECATED |
Angle used for gradients orientation.
Definition at line 72 of file DNA_material_types.h.
| float MaterialGPencilStyle::fill_rgba[4] |
Color that should be used for drawing "fills" for strokes (alpha included).
Definition at line 58 of file DNA_material_types.h.
Referenced by blender::ed::object::add_grease_pencil_materials_for_conversion(), blender::ed::greasepencil::add_material_from_template(), BKE_gpencil_material_attr_init(), blo_do_versions_280(), blender::io::grease_pencil::GreasePencilImporter::create_material(), blender::ui::greasepencil::eyedropper_add_material(), blender::io::grease_pencil::GreasePencilExporter::foreach_stroke_in_layer(), blender::draw::gpencil::gpencil_material_pool_create(), blender::draw::gpencil::gpencil_viewport_material_overrides(), material_foreach_working_space_color(), blender::ed::object::mesh_to_grease_pencil_add_material(), blender::modify_fill_color(), and blender::modify_fill_color().
| short MaterialGPencilStyle::fill_style |
Style for filling areas (used to select shader type).
Definition at line 68 of file DNA_material_types.h.
Referenced by blo_do_versions_280(), blender::draw::gpencil::gpencil_material_pool_create(), blender::draw::gpencil::gpencil_viewport_material_overrides(), and blender::modify_fill_color().
| short MaterialGPencilStyle::flag |
Settings.
Definition at line 62 of file DNA_material_types.h.
Referenced by blender::ed::object::add_grease_pencil_materials_for_conversion(), blender::ed::greasepencil::add_material_from_template(), BKE_gpencil_material_attr_init(), blo_do_versions_280(), BLO_update_defaults_startup_blend(), blender::ed::greasepencil::GreasePencilPenToolOperation::can_create_new_curve(), blender::io::grease_pencil::GreasePencilImporter::create_material(), blender::draw::overlay::GreasePencil::draw_grease_pencil(), blender::ed::greasepencil::image_render::draw_grease_pencil_strokes(), blender::ui::greasepencil::eyedropper_add_material(), blender::io::grease_pencil::GreasePencilExporter::foreach_stroke_in_layer(), blender::ed::greasepencil::get_boundary_bounds(), blender::ed::greasepencil::get_fill_material_indices(), blender::ed::greasepencil::get_hidden_material_indices(), blender::ed::greasepencil::get_locked_material_indices(), blender::ed::greasepencil::get_visible_boundary_strokes(), blender::draw::gpencil::gpencil_material_pool_create(), blender::draw::gpencil::gpencil_object_cache_add(), blender::ed::greasepencil::grease_pencil_material_hide_exec(), blender::ed::greasepencil::grease_pencil_material_lock_all_exec(), blender::ed::greasepencil::grease_pencil_material_lock_unselected_exec(), blender::ed::greasepencil::grease_pencil_material_lock_unused_exec(), blender::ed::greasepencil::grease_pencil_material_reveal_exec(), blender::ed::greasepencil::grease_pencil_material_unlock_all_exec(), blender::ed::greasepencil::grease_pencil_primitive_invoke(), blender::ed::greasepencil::material_isolate_exec(), blender::ed::object::mesh_to_grease_pencil_add_material(), blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::skip_strokes_with_locked_material(), and blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::stroke_eraser().
| int MaterialGPencilStyle::gradient_type |
Type of gradient.
Definition at line 94 of file DNA_material_types.h.
Referenced by blender::draw::gpencil::gpencil_material_pool_create(), and blender::ed::greasepencil::grease_pencil_texture_gradient_exec().
| struct Image* MaterialGPencilStyle::ima |
Texture image for filling.
Definition at line 54 of file DNA_material_types.h.
Referenced by blender::draw::gpencil::gpencil_material_pool_create(), blender::draw::gpencil::gpencil_viewport_material_overrides(), and material_foreach_id().
| short MaterialGPencilStyle::index |
Custom index for passes.
Definition at line 64 of file DNA_material_types.h.
Referenced by blender::modifier::greasepencil::get_grease_pencil_material_passes().
| float MaterialGPencilStyle::mix_factor |
Factor used to define shader behavior (several uses).
Definition at line 70 of file DNA_material_types.h.
Referenced by BKE_gpencil_material_attr_init(), BLO_update_defaults_startup_blend(), blender::draw::gpencil::gpencil_material_pool_create(), and blender::draw::gpencil::gpencil_viewport_material_overrides().
| float MaterialGPencilStyle::mix_rgba[4] |
Secondary color used for gradients and other stuff.
Definition at line 60 of file DNA_material_types.h.
Referenced by BKE_gpencil_material_attr_init(), BLO_update_defaults_startup_blend(), blender::draw::gpencil::gpencil_material_pool_create(), material_foreach_working_space_color(), and blender::modify_fill_color().
| float MaterialGPencilStyle::mix_stroke_factor |
Factor used to mix texture and stroke color.
Definition at line 97 of file DNA_material_types.h.
Referenced by blo_do_versions_280(), blender::draw::gpencil::gpencil_material_pool_create(), and blender::draw::gpencil::gpencil_viewport_material_overrides().
| int MaterialGPencilStyle::mode |
Drawing mode (line or dots).
Definition at line 91 of file DNA_material_types.h.
Referenced by BLO_update_defaults_startup_blend(), blender::ed::greasepencil::image_render::draw_grease_pencil_strokes(), and blender::draw::gpencil::gpencil_material_pool_create().
| struct Image* MaterialGPencilStyle::sima |
Texture image for strokes.
Definition at line 52 of file DNA_material_types.h.
Referenced by blender::draw::gpencil::gpencil_material_pool_create(), blender::draw::gpencil::gpencil_viewport_material_overrides(), and material_foreach_id().
| float MaterialGPencilStyle::stroke_rgba[4] |
Color for paint and strokes (alpha included).
Definition at line 56 of file DNA_material_types.h.
Referenced by blender::ed::greasepencil::add_material_from_template(), BKE_gpencil_material_attr_init(), blo_do_versions_280(), blender::io::grease_pencil::GreasePencilExporter::compute_average_stroke_color(), blender::io::grease_pencil::GreasePencilImporter::create_material(), blender::ui::greasepencil::eyedropper_add_material(), blender::draw::gpencil::gpencil_material_pool_create(), blender::draw::gpencil::gpencil_viewport_material_overrides(), blender::ed::sculpt_paint::grease_pencil_brush_cursor_draw(), material_default_gpencil_init(), material_foreach_working_space_color(), blender::ed::object::mesh_to_grease_pencil_add_material(), blender::modify_stroke_color(), and blender::modify_stroke_color().
| short MaterialGPencilStyle::stroke_style |
Style for drawing strokes (used to select shader type).
Definition at line 66 of file DNA_material_types.h.
Referenced by blender::draw::gpencil::gpencil_material_pool_create(), and blender::draw::gpencil::gpencil_viewport_material_overrides().
| float MaterialGPencilStyle::texture_angle |
Angle used for texture orientation.
Definition at line 81 of file DNA_material_types.h.
Referenced by blo_do_versions_280(), blender::draw::gpencil::gpencil_material_pool_create(), and blender::ed::greasepencil::grease_pencil_texture_gradient_exec().
| float MaterialGPencilStyle::texture_offset[2] |
Factor to shift texture in 2d space.
Definition at line 85 of file DNA_material_types.h.
Referenced by BKE_gpencil_material_attr_init(), blo_do_versions_280(), BLO_update_defaults_startup_blend(), blender::draw::gpencil::gpencil_material_pool_create(), and blender::ed::greasepencil::grease_pencil_texture_gradient_exec().
| float MaterialGPencilStyle::texture_pixsize |
Pixel size for uv along the stroke.
Definition at line 89 of file DNA_material_types.h.
Referenced by BKE_gpencil_material_attr_init(), and blender::draw::gpencil::gpencil_material_pool_create().
| float MaterialGPencilStyle::texture_scale[2] |
Texture scale (separated of uv scale).
Definition at line 83 of file DNA_material_types.h.
Referenced by BKE_gpencil_material_attr_init(), blo_do_versions_280(), blender::draw::gpencil::gpencil_material_pool_create(), and blender::ed::greasepencil::grease_pencil_texture_gradient_exec().