Blender  V3.3
Public Attributes | List of all members
MaterialGPencilStyle Struct Reference

#include <DNA_material_types.h>

Public Attributes

struct Imagesima
 
struct Imageima
 
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
 

Detailed Description

Definition at line 49 of file DNA_material_types.h.

Member Data Documentation

◆ _pad2

char MaterialGPencilStyle::_pad2[4]

Definition at line 76 of file DNA_material_types.h.

◆ alignment_mode

int MaterialGPencilStyle::alignment_mode

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

Definition at line 100 of file DNA_material_types.h.

Referenced by gpencil_material_pool_create().

◆ alignment_rotation

float MaterialGPencilStyle::alignment_rotation

Rotation for texture for Dots and Squares.

Definition at line 102 of file DNA_material_types.h.

Referenced by gpencil_material_pool_create().

◆ DNA_DEPRECATED [1/5]

float gradient_angle MaterialGPencilStyle::DNA_DEPRECATED

Angle used for gradients orientation.

Definition at line 73 of file DNA_material_types.h.

◆ DNA_DEPRECATED [2/5]

float gradient_radius MaterialGPencilStyle::DNA_DEPRECATED

Radius for radial gradients.

Definition at line 75 of file DNA_material_types.h.

◆ DNA_DEPRECATED [3/5]

float gradient_scale [2] MaterialGPencilStyle::DNA_DEPRECATED

Uv coordinates scale.

Definition at line 78 of file DNA_material_types.h.

◆ DNA_DEPRECATED [4/5]

float gradient_shift [2] MaterialGPencilStyle::DNA_DEPRECATED

Factor to shift filling in 2d space.

Definition at line 80 of file DNA_material_types.h.

◆ DNA_DEPRECATED [5/5]

float texture_opacity MaterialGPencilStyle::DNA_DEPRECATED

Texture opacity.

Definition at line 88 of file DNA_material_types.h.

◆ fill_rgba

float MaterialGPencilStyle::fill_rgba[4]

◆ fill_style

short MaterialGPencilStyle::fill_style

◆ flag

short MaterialGPencilStyle::flag

◆ gradient_type

int MaterialGPencilStyle::gradient_type

Type of gradient.

Definition at line 95 of file DNA_material_types.h.

Referenced by gpencil_material_pool_create().

◆ ima

struct Image* MaterialGPencilStyle::ima

◆ index

short MaterialGPencilStyle::index

Custom index for passes.

Definition at line 65 of file DNA_material_types.h.

Referenced by is_stroke_affected_by_modifier().

◆ mix_factor

float MaterialGPencilStyle::mix_factor

Factor used to define shader behavior (several uses).

Definition at line 71 of file DNA_material_types.h.

Referenced by BKE_gpencil_material_attr_init(), BLO_update_defaults_startup_blend(), gpencil_material_pool_create(), and gpencil_viewport_material_overrides().

◆ mix_rgba

float MaterialGPencilStyle::mix_rgba[4]

Secondary color used for gradients and other stuff.

Definition at line 61 of file DNA_material_types.h.

Referenced by BKE_gpencil_material_attr_init(), BLO_update_defaults_startup_blend(), gpencil_convert_old_files_exec(), and gpencil_material_pool_create().

◆ mix_stroke_factor

float MaterialGPencilStyle::mix_stroke_factor

Factor used to mix texture and stroke color.

Definition at line 98 of file DNA_material_types.h.

Referenced by blo_do_versions_280(), gpencil_material_pool_create(), and gpencil_viewport_material_overrides().

◆ mode

int MaterialGPencilStyle::mode

◆ sima

struct Image* MaterialGPencilStyle::sima

◆ stroke_rgba

float MaterialGPencilStyle::stroke_rgba[4]

◆ stroke_style

short MaterialGPencilStyle::stroke_style

◆ texture_angle

float MaterialGPencilStyle::texture_angle

Angle used for texture orientation.

Definition at line 82 of file DNA_material_types.h.

Referenced by blo_do_versions_280(), and gpencil_material_pool_create().

◆ texture_offset

float MaterialGPencilStyle::texture_offset[2]

Factor to shift texture in 2d space.

Definition at line 86 of file DNA_material_types.h.

Referenced by BKE_gpencil_material_attr_init(), blo_do_versions_280(), BLO_update_defaults_startup_blend(), and gpencil_material_pool_create().

◆ texture_pixsize

float MaterialGPencilStyle::texture_pixsize

Pixel size for uv along the stroke.

Definition at line 90 of file DNA_material_types.h.

Referenced by BKE_gpencil_material_attr_init(), gpencil_convert_old_files_exec(), and gpencil_material_pool_create().

◆ texture_scale

float MaterialGPencilStyle::texture_scale[2]

Texture scale (separated of uv scale).

Definition at line 84 of file DNA_material_types.h.

Referenced by BKE_gpencil_material_attr_init(), blo_do_versions_280(), gpencil_convert_old_files_exec(), and gpencil_material_pool_create().


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