Blender V5.3
blender::Material Struct Reference

#include <DNA_material_types.h>

Public Attributes

ID id
struct AnimData * adt = nullptr
eMaterial_Flag flag = {}
eMaterial_SurfaceRenderMethod surface_render_method = MA_SURFACE_METHOD_DEFERRED
char _pad1 [1] = {}
float r = 0.8
float g = 0.8
float b = 0.8
float a = 1.0f
float specr = 1.0
float specg = 1.0
float specb = 1.0
DNA_DEPRECATED float alpha = 0
DNA_DEPRECATED float ray_mirror = 0
float spec = 0.5
DNA_DEPRECATED float gloss_mir = 0
float roughness = 0.4f
float metallic = 0
DNA_DEPRECATED char use_nodes = 0
ePreviewType pr_type = MA_SPHERE
short pr_texture = 0
eMaterial_PreviewFlag pr_flag = {}
short index = 0
struct bNodeTree * nodetree = nullptr
struct PreviewImage * preview = nullptr
float line_col [4] = {}
short line_priority = 0
short vcol_alpha = 0
short paint_active_slot = 0
short paint_clone_slot = 0
short tot_slots = 0
eMaterial_DisplacementMethod displacement_method = MA_DISPLACEMENT_BUMP
eMaterial_ThicknessMode thickness_mode = MA_THICKNESS_SPHERE
float alpha_threshold = 0.5f
float refract_depth = 0
eMaterial_BlendMethod blend_method
eMaterial_BlendShadow blend_shadow
eMaterial_BlendFlag blend_flag = MA_BL_TRANSPARENT_SHADOW
eMaterial_VolumeIntersectionMethod volume_intersection_method = MA_VOLUME_ISECT_FAST
float inflate_bounds = 0
char _pad3 [4] = {}
struct TexPaintSlot * texpaintslot = nullptr
ListBaseT< LinkData > gpumaterial = {nullptr, nullptr}
struct MaterialGPencilStyle * gp_style = nullptr
struct MaterialLineArt lineart

Detailed Description

Definition at line 375 of file DNA_material_types.h.

Member Data Documentation

◆ _pad1

char blender::Material::_pad1[1] = {}

Definition at line 389 of file DNA_material_types.h.

◆ _pad3

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

Definition at line 450 of file DNA_material_types.h.

◆ a

float blender::Material::a = 1.0f

Definition at line 392 of file DNA_material_types.h.

◆ adt

struct AnimData* blender::Material::adt = nullptr

Animation data (must be immediately after id for utilities to use it).

Definition at line 384 of file DNA_material_types.h.

◆ alpha

DNA_DEPRECATED float blender::Material::alpha = 0

Definition at line 394 of file DNA_material_types.h.

◆ alpha_threshold

float blender::Material::alpha_threshold = 0.5f

Definition at line 436 of file DNA_material_types.h.

◆ b

float blender::Material::b = 0.8

Definition at line 392 of file DNA_material_types.h.

◆ blend_flag

eMaterial_BlendFlag blender::Material::blend_flag = MA_BL_TRANSPARENT_SHADOW

Definition at line 442 of file DNA_material_types.h.

◆ blend_method

eMaterial_BlendMethod blender::Material::blend_method
Initial value:

Definition at line 438 of file DNA_material_types.h.

◆ blend_shadow

eMaterial_BlendShadow blender::Material::blend_shadow
Initial value:

Definition at line 440 of file DNA_material_types.h.

◆ displacement_method

eMaterial_DisplacementMethod blender::Material::displacement_method = MA_DISPLACEMENT_BUMP

Definition at line 430 of file DNA_material_types.h.

◆ flag

eMaterial_Flag blender::Material::flag = {}

Definition at line 386 of file DNA_material_types.h.

◆ g

float blender::Material::g = 0.8

Definition at line 392 of file DNA_material_types.h.

◆ gloss_mir

DNA_DEPRECATED float blender::Material::gloss_mir = 0

Renamed and inversed to roughness.

Definition at line 398 of file DNA_material_types.h.

◆ gp_style

struct MaterialGPencilStyle* blender::Material::gp_style = nullptr

Grease pencil color.

Definition at line 462 of file DNA_material_types.h.

◆ gpumaterial

ListBaseT<LinkData> blender::Material::gpumaterial = {nullptr, nullptr}

Runtime cache for GLSL materials.

Definition at line 459 of file DNA_material_types.h.

◆ id

ID blender::Material::id

Definition at line 382 of file DNA_material_types.h.

◆ index

short blender::Material::index = 0

Index for render passes.

Definition at line 411 of file DNA_material_types.h.

◆ inflate_bounds

float blender::Material::inflate_bounds = 0

Definition at line 448 of file DNA_material_types.h.

◆ line_col

float blender::Material::line_col[4] = {}

Definition at line 420 of file DNA_material_types.h.

◆ line_priority

short blender::Material::line_priority = 0

Definition at line 421 of file DNA_material_types.h.

◆ lineart

struct MaterialLineArt blender::Material::lineart

Definition at line 463 of file DNA_material_types.h.

◆ metallic

float blender::Material::metallic = 0

Definition at line 400 of file DNA_material_types.h.

◆ nodetree

struct bNodeTree* blender::Material::nodetree = nullptr

Definition at line 416 of file DNA_material_types.h.

◆ paint_active_slot

short blender::Material::paint_active_slot = 0

Definition at line 425 of file DNA_material_types.h.

◆ paint_clone_slot

short blender::Material::paint_clone_slot = 0

Definition at line 426 of file DNA_material_types.h.

◆ pr_flag

eMaterial_PreviewFlag blender::Material::pr_flag = {}

Definition at line 408 of file DNA_material_types.h.

◆ pr_texture

short blender::Material::pr_texture = 0

Definition at line 407 of file DNA_material_types.h.

◆ pr_type

ePreviewType blender::Material::pr_type = MA_SPHERE

Preview render.

Definition at line 406 of file DNA_material_types.h.

◆ preview

struct PreviewImage* blender::Material::preview = nullptr

Definition at line 417 of file DNA_material_types.h.

◆ r

float blender::Material::r = 0.8

Definition at line 392 of file DNA_material_types.h.

◆ ray_mirror

DNA_DEPRECATED float blender::Material::ray_mirror = 0

Definition at line 395 of file DNA_material_types.h.

◆ refract_depth

float blender::Material::refract_depth = 0

Definition at line 437 of file DNA_material_types.h.

◆ roughness

float blender::Material::roughness = 0.4f

Definition at line 399 of file DNA_material_types.h.

◆ spec

float blender::Material::spec = 0.5

Definition at line 396 of file DNA_material_types.h.

◆ specb

float blender::Material::specb = 1.0

Definition at line 393 of file DNA_material_types.h.

◆ specg

float blender::Material::specg = 1.0

Definition at line 393 of file DNA_material_types.h.

◆ specr

float blender::Material::specr = 1.0

Definition at line 393 of file DNA_material_types.h.

◆ surface_render_method

eMaterial_SurfaceRenderMethod blender::Material::surface_render_method = MA_SURFACE_METHOD_DEFERRED

Rendering modes for EEVEE.

Definition at line 388 of file DNA_material_types.h.

◆ texpaintslot

struct TexPaintSlot* blender::Material::texpaintslot = nullptr

Cached slots for texture painting, must be refreshed via BKE_texpaint_slot_refresh_cache before using.

Definition at line 456 of file DNA_material_types.h.

◆ thickness_mode

eMaterial_ThicknessMode blender::Material::thickness_mode = MA_THICKNESS_SPHERE

Definition at line 433 of file DNA_material_types.h.

◆ tot_slots

short blender::Material::tot_slots = 0

Definition at line 427 of file DNA_material_types.h.

◆ use_nodes

DNA_DEPRECATED char blender::Material::use_nodes = 0

Nodes

Definition at line 403 of file DNA_material_types.h.

◆ vcol_alpha

short blender::Material::vcol_alpha = 0

Definition at line 422 of file DNA_material_types.h.

◆ volume_intersection_method

eMaterial_VolumeIntersectionMethod blender::Material::volume_intersection_method = MA_VOLUME_ISECT_FAST

Definition at line 445 of file DNA_material_types.h.


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