Blender V5.3
blender::MaterialGPencilStyle Struct Reference

#include <DNA_material_types.h>

Public Attributes

struct Image * sima = nullptr
struct Image * ima = nullptr
float stroke_rgba [4] = {}
float fill_rgba [4] = {}
float mix_rgba [4] = {}
eMaterialGPencilStyle_Flag flag = {}
short index = 0
eMaterialGPencilStyle_StrokeStyle stroke_style = GP_MATERIAL_STROKE_STYLE_SOLID
eMaterialGPencilStyle_FillStyle fill_style = GP_MATERIAL_FILL_STYLE_SOLID
float mix_factor = 0
DNA_DEPRECATED float gradient_angle = 0
DNA_DEPRECATED float gradient_radius = 0
char _pad2 [4] = {}
DNA_DEPRECATED float gradient_scale [2] = {}
DNA_DEPRECATED float gradient_shift [2] = {}
float texture_angle = 0
float texture_scale [2] = {}
float texture_offset [2] = {}
DNA_DEPRECATED float texture_opacity = 0
float texture_pixsize = 0
eMaterialGPencilStyle_Mode mode = GP_MATERIAL_MODE_LINE
eMaterialGPencilStyle_GradientType gradient_type = GP_MATERIAL_GRADIENT_LINEAR
float mix_stroke_factor = 0
eMaterialGPencilStyle_FollowMode alignment_mode = GP_MATERIAL_FOLLOW_PATH
float alignment_rotation = 0
eMaterialGPencilPlacementMode placement_mode = GP_MATERIAL_PLACEMENT_COUNT
int placement_count = 0
float placement_radius_spacing = 0
float placement_density = 0
float random_size_factor = 0
float random_strength_factor = 0
float random_rotation_factor = 0
float random_hue_factor = 0
float random_saturation_factor = 0
float random_value_factor = 0
float random_noise_scale = 0
char _pad3 [4] = {}
struct ColorBand * gradient = nullptr

Detailed Description

Definition at line 283 of file DNA_material_types.h.

Member Data Documentation

◆ _pad2

char blender::MaterialGPencilStyle::_pad2[4] = {}

Definition at line 310 of file DNA_material_types.h.

◆ _pad3

char blender::MaterialGPencilStyle::_pad3[4] = {}

Definition at line 355 of file DNA_material_types.h.

◆ alignment_mode

eMaterialGPencilStyle_FollowMode blender::MaterialGPencilStyle::alignment_mode = GP_MATERIAL_FOLLOW_PATH

Mode used to align Dots and Boxes with stroke drawing path and object rotation

Definition at line 334 of file DNA_material_types.h.

Referenced by blender::draw::gpencil::gpencil_material_pool_create().

◆ alignment_rotation

float blender::MaterialGPencilStyle::alignment_rotation = 0

Rotation for texture for Dots and Squares.

Definition at line 336 of file DNA_material_types.h.

Referenced by blender::draw::gpencil::gpencil_material_pool_create().

◆ fill_rgba

◆ fill_style

eMaterialGPencilStyle_FillStyle blender::MaterialGPencilStyle::fill_style = GP_MATERIAL_FILL_STYLE_SOLID

◆ flag

◆ gradient

struct ColorBand* blender::MaterialGPencilStyle::gradient = nullptr

Color gradient.

Definition at line 358 of file DNA_material_types.h.

Referenced by blender::draw::gpencil::gpencil_material_pool_create().

◆ gradient_angle

DNA_DEPRECATED float blender::MaterialGPencilStyle::gradient_angle = 0

Angle used for gradients orientation.

Definition at line 307 of file DNA_material_types.h.

Referenced by blender::blo_do_versions_280().

◆ gradient_radius

DNA_DEPRECATED float blender::MaterialGPencilStyle::gradient_radius = 0

Radius for radial gradients.

Definition at line 309 of file DNA_material_types.h.

◆ gradient_scale

DNA_DEPRECATED float blender::MaterialGPencilStyle::gradient_scale[2] = {}

UV coordinates scale.

Definition at line 312 of file DNA_material_types.h.

Referenced by blender::blo_do_versions_280().

◆ gradient_shift

DNA_DEPRECATED float blender::MaterialGPencilStyle::gradient_shift[2] = {}

Factor to shift filling in 2d space.

Definition at line 314 of file DNA_material_types.h.

Referenced by blender::blo_do_versions_280().

◆ gradient_type

◆ ima

struct Image* blender::MaterialGPencilStyle::ima = nullptr

◆ index

short blender::MaterialGPencilStyle::index = 0

Pass index (only used for modifiers to restrict their influence).

Definition at line 299 of file DNA_material_types.h.

◆ mix_factor

float blender::MaterialGPencilStyle::mix_factor = 0

◆ mix_rgba

float blender::MaterialGPencilStyle::mix_rgba[4] = {}

Secondary color used for gradients and other stuff.

Definition at line 295 of file DNA_material_types.h.

◆ mix_stroke_factor

float blender::MaterialGPencilStyle::mix_stroke_factor = 0

◆ mode

◆ placement_count

◆ placement_density

float blender::MaterialGPencilStyle::placement_density = 0

◆ placement_mode

◆ placement_radius_spacing

float blender::MaterialGPencilStyle::placement_radius_spacing = 0

◆ random_hue_factor

float blender::MaterialGPencilStyle::random_hue_factor = 0

◆ random_noise_scale

float blender::MaterialGPencilStyle::random_noise_scale = 0

◆ random_rotation_factor

float blender::MaterialGPencilStyle::random_rotation_factor = 0

◆ random_saturation_factor

float blender::MaterialGPencilStyle::random_saturation_factor = 0

◆ random_size_factor

float blender::MaterialGPencilStyle::random_size_factor = 0

◆ random_strength_factor

float blender::MaterialGPencilStyle::random_strength_factor = 0

◆ random_value_factor

float blender::MaterialGPencilStyle::random_value_factor = 0

◆ sima

struct Image* blender::MaterialGPencilStyle::sima = nullptr

◆ stroke_rgba

◆ stroke_style

eMaterialGPencilStyle_StrokeStyle blender::MaterialGPencilStyle::stroke_style = GP_MATERIAL_STROKE_STYLE_SOLID

Style for drawing strokes (used to select shader type).

Definition at line 301 of file DNA_material_types.h.

Referenced by blender::draw::gpencil::gpencil_material_pool_create(), and blender::draw::gpencil::gpencil_viewport_material_overrides().

◆ texture_angle

float blender::MaterialGPencilStyle::texture_angle = 0

◆ texture_offset

float blender::MaterialGPencilStyle::texture_offset[2] = {}

◆ texture_opacity

DNA_DEPRECATED float blender::MaterialGPencilStyle::texture_opacity = 0

Texture opacity.

Definition at line 322 of file DNA_material_types.h.

Referenced by blender::blo_do_versions_280().

◆ texture_pixsize

float blender::MaterialGPencilStyle::texture_pixsize = 0

Pixel size for uv along the stroke.

Definition at line 324 of file DNA_material_types.h.

Referenced by blender::BKE_gpencil_material_attr_init(), and blender::draw::gpencil::gpencil_material_pool_create().

◆ texture_scale


The documentation for this struct was generated from the following file: