|
Blender V4.3
|
#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 21 of file Materials.h.
| MaterialNode::MaterialNode | ( | bContext * | C, |
| COLLADAFW::EffectCommon * | ef, | ||
| Material * | ma, | ||
| UidImageMap & | uid_image_map ) |
Definition at line 24 of file Materials.cpp.
References SH_NODE_OUTPUT_MATERIAL.
| MaterialNode::MaterialNode | ( | bContext * | C, |
| Material * | ma, | ||
| KeyImageMap & | key_image_map ) |
Definition at line 12 of file Materials.cpp.
References SH_NODE_OUTPUT_MATERIAL.
| Image * MaterialNode::get_diffuse_image | ( | ) |
Definition at line 254 of file Materials.cpp.
References bNodeLink::fromnode, Image::id, image(), bNodeSocket::link, blender::bke::node_find_socket(), SH_NODE_TEX_IMAGE, and SOCK_IN.
| void MaterialNode::set_alpha | ( | COLLADAFW::EffectCommon::OpaqueMode | mode, |
| COLLADAFW::ColorOrTexture & | cot, | ||
| COLLADAFW::FloatOrParam & | val ) |
Definition at line 178 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 297 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 223 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 329 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 164 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 356 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 313 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 142 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 381 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 101 of file Materials.cpp.
References BKE_ntree_update_main_tree(), and CTX_data_main().
Referenced by DocumentImporter::write_profile_COMMON().