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

#include <DNA_material_types.h>

Public Attributes

ID id
 
struct AnimDataadt
 
short flag
 
char _pad1 [2]
 
float r
 
float g
 
float b
 
float a
 
float specr
 
float specg
 
float specb
 
float alpha DNA_DEPRECATED
 
float ray_mirror DNA_DEPRECATED
 
float spec
 
float gloss_mir DNA_DEPRECATED
 
float roughness
 
float metallic
 
char use_nodes
 
char pr_type
 
short pr_texture
 
short pr_flag
 
short index
 
struct bNodeTreenodetree
 
struct Ipo *ipo DNA_DEPRECATED
 
struct PreviewImagepreview
 
float line_col [4]
 
short line_priority
 
short vcol_alpha
 
short paint_active_slot
 
short paint_clone_slot
 
short tot_slots
 
char _pad2 [2]
 
float alpha_threshold
 
float refract_depth
 
char blend_method
 
char blend_shadow
 
char blend_flag
 
char _pad3 [1]
 
struct TexPaintSlottexpaintslot
 
ListBase gpumaterial
 
struct MaterialGPencilStylegp_style
 
struct MaterialLineArt lineart
 

Detailed Description

Definition at line 164 of file DNA_material_types.h.

Member Data Documentation

◆ _pad1

char Material::_pad1[2]

Definition at line 172 of file DNA_material_types.h.

◆ _pad2

char Material::_pad2[2]

Definition at line 210 of file DNA_material_types.h.

◆ _pad3

char Material::_pad3[1]

Definition at line 218 of file DNA_material_types.h.

◆ a

float Material::a

◆ adt

struct AnimData* Material::adt

◆ alpha_threshold

float Material::alpha_threshold

◆ b

float Material::b

◆ blend_flag

char Material::blend_flag

◆ blend_method

char Material::blend_method

◆ blend_shadow

char Material::blend_shadow

Definition at line 216 of file DNA_material_types.h.

Referenced by material_shadow().

◆ DNA_DEPRECATED [1/4]

float alpha Material::DNA_DEPRECATED

Definition at line 177 of file DNA_material_types.h.

◆ DNA_DEPRECATED [2/4]

float ray_mirror Material::DNA_DEPRECATED

Definition at line 178 of file DNA_material_types.h.

◆ DNA_DEPRECATED [3/4]

float gloss_mir Material::DNA_DEPRECATED

Renamed and inversed to roughness.

Definition at line 181 of file DNA_material_types.h.

◆ DNA_DEPRECATED [4/4]

struct Ipo* ipo Material::DNA_DEPRECATED

Old animation system, deprecated for 2.5.

Definition at line 198 of file DNA_material_types.h.

◆ flag

short Material::flag

◆ g

float Material::g

◆ gp_style

struct MaterialGPencilStyle* Material::gp_style

Grease pencil color.

Definition at line 230 of file DNA_material_types.h.

Referenced by BKE_gpencil_brush_preset_set(), BKE_gpencil_material_attr_init(), BKE_gpencil_material_find_index_by_name_prefix(), BKE_gpencil_material_settings(), BKE_gpencil_merge_materials_table_get(), BKE_gpencil_object_material_ensure_active(), BLO_update_defaults_startup_blend(), blender::deg::DepsgraphRelationBuilder::build_object_data_geometry_datablock(), blender::io::gpencil::GpencilImporter::create_material(), do_versions_after_linking_280(), ED_gpencil_sbuffer_vertex_color_set(), ED_gpencil_trace_data_to_strokes(), ED_preview_shader_job(), eyedropper_add_material(), gpencil_add_from_curve_material(), gpencil_add_material(), gpencil_brush_cursor_draw(), gpencil_check_same_material_color(), gpencil_convert_old_files_exec(), gpencil_draw_basic_stroke(), gpencil_draw_strokes(), gpencil_lineart_material(), gpencil_lock_layer_exec(), gpencil_material_find_index_by_name(), gpencil_material_hide_exec(), gpencil_material_isolate_exec(), gpencil_material_lock_unsused_exec(), gpencil_material_to_vertex_exec(), gpencil_monkey_color(), gpencil_stroke_material(), gpencil_strokes_merge_poll(), image_to_gpencil_exec(), is_stroke_affected_by_modifier(), material_blend_read_data(), material_blend_read_expand(), material_blend_read_lib(), material_blend_write(), material_copy_data(), material_default_gpencil_init(), material_drop_invoke(), material_foreach_id(), material_free_data(), other_id_types_preview_render(), overlay_gpencil_draw_stroke_color_name(), and ui_drop_material_exec().

◆ gpumaterial

ListBase Material::gpumaterial

◆ id

ID Material::id

Definition at line 167 of file DNA_material_types.h.

Referenced by blender::io::usd::USDMaterialReader::add_material(), add_used_ids_from_sockets(), utils::assign_materials(), blender::io::alembic::utils::assign_materials(), bake_object_check(), bake_targets_output_external(), BKE_cryptomatte_material_hash(), BKE_gpencil_brush_material_set(), BKE_gpencil_brush_preset_set(), BKE_gpencil_convert_mesh(), BKE_gpencil_material_find_index_by_name_prefix(), BKE_gpencil_object_material_index_get_by_name(), BKE_gpencil_object_material_new(), BKE_id_material_assign(), BKE_material_copybuf_paste(), BKE_material_eval(), BKE_node_tree_iter_step(), BKE_object_material_from_eval_data(), BKE_object_material_slot_remove(), BKE_texpaint_slot_refresh_cache(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_pre250(), utils::build_mat_map(), blender::deg::DepsgraphNodeBuilder::build_material(), blender::deg::DepsgraphRelationBuilder::build_material(), blender::io::alembic::utils::build_material_map(), blender::deg::DepsgraphRelationBuilder::build_object_data_geometry_datablock(), buttons_context_path_material(), do_versions_ipos_to_animato(), DRW_shader_from_material(), ED_gpencil_material_enum_itemf(), ED_object_ot_drop_named_material_tooltip(), blender::io::usd::USDAbstractWriter::ensure_usd_material(), FRS_create_stroke_material(), Freestyle::BlenderStrokeRenderer::GenerateStrokeMesh(), get_animation_curves(), get_default_texture_layer_name_for_object(), blender::io::obj::OBJMesh::get_object_material_name(), blender::io::obj::get_or_create_material(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), gpencil_lock_layer_exec(), gpencil_material_find_index_by_name(), gpencil_material_hide_exec(), gpencil_material_isolate_exec(), gpencil_material_lock_unsused_exec(), image_walk_id_all_users(), is_stroke_affected_by_modifier(), make_local_material_tag(), material_blend_read_lib(), material_blend_write(), material_changed(), material_copy_data(), material_default_gpencil_init(), material_default_holdout_init(), material_default_surface_init(), material_default_volume_init(), blender::io::obj::mtlmaterial_for_material(), new_material_exec(), node_socket_copy_default_value(), object_gpencil_add_exec(), object_material_assign(), overlay_gpencil_draw_stroke_color_name(), paste_material_exec(), paste_mtex_exec(), proj_paint_add_slot(), shader_get_from_context(), single_mat_users(), socket_id_user_decrement(), AnimationImporter::translate_Animations(), ui_drop_material_tooltip(), uiTemplatePreview(), and DocumentImporter::writeMaterial().

◆ index

short Material::index

Index for render passes.

Definition at line 194 of file DNA_material_types.h.

Referenced by blender::nodes::node_shader_object_info_cc::node_shader_gpu_object_info(), and twist_get_axis().

◆ line_col

float Material::line_col[4]

◆ line_priority

short Material::line_priority

Definition at line 203 of file DNA_material_types.h.

Referenced by Freestyle::BlenderFileLoader::insertShapeNode().

◆ lineart

struct MaterialLineArt Material::lineart

◆ metallic

float Material::metallic

◆ nodetree

struct bNodeTree* Material::nodetree

◆ paint_active_slot

short Material::paint_active_slot

◆ paint_clone_slot

short Material::paint_clone_slot

◆ pr_flag

short Material::pr_flag

Definition at line 191 of file DNA_material_types.h.

Referenced by preview_prepare_scene().

◆ pr_texture

short Material::pr_texture

Definition at line 190 of file DNA_material_types.h.

◆ pr_type

char Material::pr_type

Preview render.

Definition at line 189 of file DNA_material_types.h.

Referenced by preview_prepare_scene().

◆ preview

struct PreviewImage* Material::preview

◆ r

float Material::r

◆ refract_depth

float Material::refract_depth

Definition at line 214 of file DNA_material_types.h.

Referenced by material_opaque(), and material_transparent().

◆ roughness

float Material::roughness

◆ spec

float Material::spec

◆ specb

float Material::specb

Definition at line 176 of file DNA_material_types.h.

Referenced by Freestyle::BlenderFileLoader::insertShapeNode().

◆ specg

float Material::specg

Definition at line 176 of file DNA_material_types.h.

Referenced by Freestyle::BlenderFileLoader::insertShapeNode().

◆ specr

float Material::specr

◆ texpaintslot

struct TexPaintSlot* Material::texpaintslot

◆ tot_slots

short Material::tot_slots

◆ use_nodes

char Material::use_nodes

◆ vcol_alpha

short Material::vcol_alpha

Definition at line 204 of file DNA_material_types.h.


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