Blender
V3.3
|
#include <DNA_material_types.h>
Public Attributes | |
ID | id |
struct AnimData * | adt |
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 bNodeTree * | nodetree |
struct Ipo *ipo | DNA_DEPRECATED |
struct PreviewImage * | preview |
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 TexPaintSlot * | texpaintslot |
ListBase | gpumaterial |
struct MaterialGPencilStyle * | gp_style |
struct MaterialLineArt | lineart |
Definition at line 164 of file DNA_material_types.h.
char Material::_pad1[2] |
Definition at line 172 of file DNA_material_types.h.
char Material::_pad2[2] |
Definition at line 210 of file DNA_material_types.h.
char Material::_pad3[1] |
Definition at line 218 of file DNA_material_types.h.
float Material::a |
Definition at line 175 of file DNA_material_types.h.
Referenced by bc_get_alpha(), paint_object_is_rendered_transparent(), MaterialNode::set_alpha(), MaterialNode::set_diffuse(), blender::io::obj::store_bsdf_properties(), workbench_material_setup_ex(), and workbench_material_ubo_data().
struct AnimData* Material::adt |
Animation data (must be immediately after id for utilities to use it).
Definition at line 169 of file DNA_material_types.h.
Referenced by acf_dsmat_setting_ptr(), bc_getSceneMaterialAction(), bc_has_animations(), get_animation_curves(), make_new_animlistelem(), material_blend_read_data(), material_blend_write(), outliner_add_id_contents(), and AnimationImporter::translate_Animations().
float Material::alpha_threshold |
Definition at line 213 of file DNA_material_types.h.
Referenced by blender::io::usd::USDMaterialReader::import_usd_preview(), material_opaque(), and material_shadow().
float Material::b |
Definition at line 175 of file DNA_material_types.h.
Referenced by bc_get_base_color(), blender::io::usd::create_usd_viewport_material(), EEVEE_shader_default_surface_nodetree(), Freestyle::BlenderFileLoader::insertShapeNode(), MaterialNode::set_diffuse(), set_viewport_material_props(), and blender::io::obj::store_bsdf_properties().
char Material::blend_flag |
Definition at line 217 of file DNA_material_types.h.
Referenced by EEVEE_subsurface_add_pass(), lineart_load_tri_task(), material_opaque(), and material_transparent().
char Material::blend_method |
Definition at line 215 of file DNA_material_types.h.
Referenced by eevee_material_cache_get(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), blender::io::usd::USDMaterialReader::import_usd_preview(), and material_opaque().
char Material::blend_shadow |
Definition at line 216 of file DNA_material_types.h.
Referenced by material_shadow().
float alpha Material::DNA_DEPRECATED |
Definition at line 177 of file DNA_material_types.h.
float ray_mirror Material::DNA_DEPRECATED |
Definition at line 178 of file DNA_material_types.h.
float gloss_mir Material::DNA_DEPRECATED |
Renamed and inversed to roughness.
Definition at line 181 of file DNA_material_types.h.
struct Ipo* ipo Material::DNA_DEPRECATED |
Old animation system, deprecated for 2.5.
Definition at line 198 of file DNA_material_types.h.
short Material::flag |
Definition at line 171 of file DNA_material_types.h.
Referenced by acf_dsmat_setting_ptr(), blender::io::obj::OBJMesh::is_ith_poly_smooth(), and preview_prepare_scene().
float Material::g |
Definition at line 175 of file DNA_material_types.h.
Referenced by bc_get_base_color(), blender::io::usd::create_usd_viewport_material(), EEVEE_shader_default_surface_nodetree(), Freestyle::BlenderFileLoader::insertShapeNode(), MaterialNode::set_diffuse(), set_viewport_material_props(), and blender::io::obj::store_bsdf_properties().
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().
ListBase Material::gpumaterial |
Runtime cache for GLSL materials.
Definition at line 227 of file DNA_material_types.h.
Referenced by BKE_material_copybuf_copy(), BKE_material_copybuf_paste(), BKE_material_defaults_free_gpu(), BKE_material_eval(), DRW_shader_from_material(), image_walk_id_all_users(), material_blend_read_data(), material_blend_write(), material_copy_data(), and material_free_data().
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().
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().
float Material::line_col[4] |
Definition at line 202 of file DNA_material_types.h.
Referenced by blo_do_versions_270(), and Freestyle::BlenderFileLoader::insertShapeNode().
short Material::line_priority |
Definition at line 203 of file DNA_material_types.h.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
struct MaterialLineArt Material::lineart |
Definition at line 230 of file DNA_material_types.h.
Referenced by lineart_identify_mlooptri_feature_edges(), and lineart_load_tri_task().
float Material::metallic |
Definition at line 183 of file DNA_material_types.h.
Referenced by blender::io::usd::create_usd_viewport_material(), EEVEE_shader_default_surface_nodetree(), MaterialNode::set_reflectivity(), set_viewport_material_props(), blender::io::obj::store_bsdf_properties(), and workbench_material_ubo_data().
struct bNodeTree* Material::nodetree |
Definition at line 196 of file DNA_material_types.h.
Referenced by bc_get_master_shader(), BKE_material_copybuf_copy(), BKE_material_copybuf_free(), BKE_material_copybuf_paste(), BKE_node_tree_iter_step(), BKE_texpaint_slot_material_find_node(), BKE_texpaint_slot_refresh_cache(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_pre250(), blender::deg::DepsgraphNodeBuilder::build_material(), blender::deg::DepsgraphRelationBuilder::build_material(), default_paint_slot_color_get(), ED_node_shader_default(), ED_object_assign_active_image(), ED_object_get_active_image(), EEVEE_material_default_diffuse_get(), EEVEE_material_default_error_get(), EEVEE_material_default_get(), EEVEE_material_default_glossy_get(), EEVEE_material_get(), eevee_material_get_ex(), blender::io::usd::find_bsdf_node(), blender::io::obj::get_or_create_material(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), image_walk_id_all_users(), blender::io::usd::USDMaterialReader::import_usd_preview(), material_blend_write(), material_copy_data(), material_default_holdout_init(), material_default_surface_init(), material_default_volume_init(), material_foreach_id(), material_free_data(), material_opaque(), material_shadow(), material_transparent(), blender::io::obj::mtlmaterial_for_material(), prepare_material_nodetree(), proj_paint_add_slot(), and shader_get_from_context().
short Material::paint_active_slot |
Definition at line 207 of file DNA_material_types.h.
Referenced by BKE_texpaint_slot_refresh_cache(), ED_object_texture_paint_mode_enter_ex(), ED_paint_proj_mesh_data_check(), fill_texpaint_slots_cb(), blender::bke::paint::canvas::get_active_slot(), blender::ed::sculpt_paint::canvas::get_active_slot(), imapaint_pick_uv(), paint_sample_color(), project_paint_face_paint_image(), and project_paint_face_paint_slot().
short Material::paint_clone_slot |
Definition at line 208 of file DNA_material_types.h.
Referenced by BKE_texpaint_slot_refresh_cache(), project_paint_face_clone_image(), and project_paint_face_clone_slot().
short Material::pr_flag |
Definition at line 191 of file DNA_material_types.h.
Referenced by preview_prepare_scene().
short Material::pr_texture |
Definition at line 190 of file DNA_material_types.h.
char Material::pr_type |
Preview render.
Definition at line 189 of file DNA_material_types.h.
Referenced by preview_prepare_scene().
struct PreviewImage* Material::preview |
Definition at line 199 of file DNA_material_types.h.
Referenced by BKE_material_copybuf_copy(), ED_gpencil_material_enum_itemf(), icon_preview_endjob(), material_blend_read_data(), material_blend_write(), material_copy_data(), and material_free_data().
float Material::r |
Definition at line 175 of file DNA_material_types.h.
Referenced by bc_get_base_color(), BKE_gpencil_convert_mesh(), blo_do_versions_250(), blender::io::usd::create_usd_viewport_material(), EEVEE_shader_default_surface_nodetree(), Freestyle::BlenderFileLoader::insertShapeNode(), material_default_surface_init(), OVERLAY_particle_cache_populate(), psys_apply_child_modifiers(), MaterialNode::set_diffuse(), set_viewport_material_props(), blender::io::obj::store_bsdf_properties(), and workbench_material_ubo_data().
float Material::refract_depth |
Definition at line 214 of file DNA_material_types.h.
Referenced by material_opaque(), and material_transparent().
float Material::roughness |
Definition at line 182 of file DNA_material_types.h.
Referenced by blender::io::usd::create_usd_viewport_material(), EEVEE_shader_default_surface_nodetree(), set_viewport_material_props(), blender::io::obj::store_bsdf_properties(), and workbench_material_ubo_data().
float Material::spec |
Definition at line 179 of file DNA_material_types.h.
Referenced by bc_get_reflectivity(), EEVEE_shader_default_surface_nodetree(), and blender::io::obj::store_bsdf_properties().
float Material::specb |
Definition at line 176 of file DNA_material_types.h.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
float Material::specg |
Definition at line 176 of file DNA_material_types.h.
Referenced by Freestyle::BlenderFileLoader::insertShapeNode().
float Material::specr |
Definition at line 176 of file DNA_material_types.h.
Referenced by blo_do_versions_250(), and Freestyle::BlenderFileLoader::insertShapeNode().
struct TexPaintSlot* Material::texpaintslot |
Cached slots for texture painting, must be refreshed in refresh_texpaint_image_cache before using.
Definition at line 224 of file DNA_material_types.h.
Referenced by BKE_texpaint_slot_material_find_node(), BKE_texpaint_slot_refresh_cache(), ED_object_texture_paint_mode_enter_ex(), ED_paint_proj_mesh_data_check(), fill_texpaint_slots_cb(), blender::bke::paint::canvas::get_active_slot(), blender::ed::sculpt_paint::canvas::get_active_slot(), imapaint_pick_uv(), material_blend_read_data(), material_blend_write(), material_copy_data(), material_foreach_id(), material_free_data(), paint_sample_color(), project_paint_face_clone_image(), project_paint_face_clone_slot(), project_paint_face_paint_image(), and project_paint_face_paint_slot().
short Material::tot_slots |
Definition at line 209 of file DNA_material_types.h.
Referenced by BKE_texpaint_slot_refresh_cache(), blender::bke::paint::canvas::get_active_slot(), and blender::ed::sculpt_paint::canvas::get_active_slot().
char Material::use_nodes |
Nodes
Definition at line 186 of file DNA_material_types.h.
Referenced by bc_get_alpha(), bc_get_base_color(), bc_get_emission(), bc_get_ior(), bc_get_reflectivity(), bc_get_shininess(), ED_object_assign_active_image(), ED_object_get_active_image(), EEVEE_material_default_diffuse_get(), EEVEE_material_default_error_get(), EEVEE_material_default_get(), EEVEE_material_default_glossy_get(), EEVEE_material_get(), blender::io::usd::USDAbstractWriter::ensure_usd_material(), blender::io::obj::get_or_create_material(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), image_walk_id_all_users(), blender::io::usd::USDMaterialReader::import_usd_preview(), material_default_holdout_init(), material_default_surface_init(), material_default_volume_init(), material_opaque(), material_shadow(), material_transparent(), new_material_exec(), prepare_material_nodetree(), and proj_paint_add_slot().
short Material::vcol_alpha |
Definition at line 204 of file DNA_material_types.h.