|
Blender V4.5
|
#include <Materials.h>
Public Member Functions | |
| MaterialNode (bContext *C, COLLADAFW::EffectCommon *ef, Material *ma, UidImageMap &uid_image_map) | |
| MaterialNode (bContext *C, Material *ma, KeyImageMap &key_image_map) | |
| Image * | get_diffuse_image () |
| void | set_diffuse (COLLADAFW::ColorOrTexture &cot) |
| void | set_specular (COLLADAFW::ColorOrTexture &cot) |
| void | set_ambient (COLLADAFW::ColorOrTexture &cot) |
| void | set_reflective (COLLADAFW::ColorOrTexture &cot) |
| void | set_emission (COLLADAFW::ColorOrTexture &cot) |
| void | set_opacity (COLLADAFW::ColorOrTexture &cot) |
| void | set_reflectivity (COLLADAFW::FloatOrParam &val) |
| void | set_shininess (COLLADAFW::FloatOrParam &val) |
| void | set_ior (COLLADAFW::FloatOrParam &val) |
| void | set_alpha (COLLADAFW::EffectCommon::OpaqueMode mode, COLLADAFW::ColorOrTexture &cot, COLLADAFW::FloatOrParam &val) |
| void | update_material_nodetree () |
Definition at line 20 of file Materials.h.
| MaterialNode::MaterialNode | ( | bContext * | C, |
| COLLADAFW::EffectCommon * | ef, | ||
| Material * | ma, | ||
| UidImageMap & | uid_image_map ) |
Definition at line 27 of file Materials.cpp.
References C, NODE_SELECT, SH_NODE_ADD_SHADER, SH_NODE_BSDF_PRINCIPLED, SH_NODE_BSDF_TRANSPARENT, SH_NODE_EMISSION, SH_NODE_MIX_SHADER, and SH_NODE_OUTPUT_MATERIAL.
| MaterialNode::MaterialNode | ( | bContext * | C, |
| Material * | ma, | ||
| KeyImageMap & | key_image_map ) |
Definition at line 15 of file Materials.cpp.
References C, nullptr, SH_NODE_BSDF_PRINCIPLED, and SH_NODE_OUTPUT_MATERIAL.
| Image * MaterialNode::get_diffuse_image | ( | ) |
Definition at line 257 of file Materials.cpp.
References blender::Span< T >::first(), bNodeLink::fromnode, blender::Span< T >::is_empty(), bNodeSocket::link, blender::bke::node_find_socket(), SH_NODE_TEX_IMAGE, SOCK_IN, and texture().
| void MaterialNode::set_alpha | ( | COLLADAFW::EffectCommon::OpaqueMode | mode, |
| COLLADAFW::ColorOrTexture & | cot, | ||
| COLLADAFW::FloatOrParam & | val ) |
Definition at line 181 of file Materials.cpp.
References col, bNodeSocket::default_value, blender::bke::node_find_socket(), and SOCK_IN.
Referenced by DocumentImporter::write_profile_COMMON().
| void MaterialNode::set_ambient | ( | COLLADAFW::ColorOrTexture & | cot | ) |
Definition at line 300 of file Materials.cpp.
References col, set_color(), and SH_NODE_RGB.
Referenced by DocumentImporter::write_profile_COMMON().
| void MaterialNode::set_diffuse | ( | COLLADAFW::ColorOrTexture & | cot | ) |
Definition at line 226 of file Materials.cpp.
References col, bNodeSocket::default_value, blender::bke::node_find_socket(), and SOCK_IN.
Referenced by DocumentImporter::write_profile_COMMON().
| void MaterialNode::set_emission | ( | COLLADAFW::ColorOrTexture & | cot | ) |
Definition at line 332 of file Materials.cpp.
References col, bNodeSocket::default_value, blender::bke::node_find_socket(), and SOCK_IN.
Referenced by DocumentImporter::write_profile_COMMON().
| void MaterialNode::set_ior | ( | COLLADAFW::FloatOrParam & | val | ) |
Definition at line 167 of file Materials.cpp.
References bNodeSocket::default_value, blender::bke::node_find_socket(), and SOCK_IN.
Referenced by DocumentImporter::write_profile_COMMON().
| void MaterialNode::set_opacity | ( | COLLADAFW::ColorOrTexture & | cot | ) |
Definition at line 359 of file Materials.cpp.
References col, bNodeSocket::default_value, blender::bke::node_find_socket(), and SOCK_IN.
| void MaterialNode::set_reflective | ( | COLLADAFW::ColorOrTexture & | cot | ) |
Definition at line 316 of file Materials.cpp.
References col, set_color(), and SH_NODE_RGB.
Referenced by DocumentImporter::write_profile_COMMON().
| void MaterialNode::set_reflectivity | ( | COLLADAFW::FloatOrParam & | val | ) |
Definition at line 145 of file Materials.cpp.
References bNodeSocket::default_value, blender::bke::node_find_socket(), and SOCK_IN.
Referenced by DocumentImporter::write_profile_COMMON().
| void MaterialNode::set_shininess | ( | COLLADAFW::FloatOrParam & | val | ) |
Referenced by DocumentImporter::write_profile_COMMON().
| void MaterialNode::set_specular | ( | COLLADAFW::ColorOrTexture & | cot | ) |
Definition at line 384 of file Materials.cpp.
References col, bNodeSocket::default_value, blender::bke::node_find_socket(), set_color(), SH_NODE_RGB, and SOCK_IN.
Referenced by DocumentImporter::write_profile_COMMON().
| void MaterialNode::update_material_nodetree | ( | ) |
Definition at line 104 of file Materials.cpp.
References BKE_ntree_update_after_single_tree_change(), and CTX_data_main().
Referenced by DocumentImporter::write_profile_COMMON().