Blender  V3.3
Public Member Functions | List of all members
MaterialNode Class Reference

#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)
 
Imageget_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 ()
 

Detailed Description

Definition at line 19 of file Materials.h.

Constructor & Destructor Documentation

◆ MaterialNode() [1/2]

MaterialNode::MaterialNode ( bContext C,
COLLADAFW::EffectCommon *  ef,
Material ma,
UidImageMap uid_image_map 
)

◆ MaterialNode() [2/2]

MaterialNode::MaterialNode ( bContext C,
Material ma,
KeyImageMap key_image_map 
)

Definition at line 7 of file Materials.cpp.

References SH_NODE_BSDF_PRINCIPLED, and SH_NODE_OUTPUT_MATERIAL.

Member Function Documentation

◆ get_diffuse_image()

Image * MaterialNode::get_diffuse_image ( )

◆ set_alpha()

void MaterialNode::set_alpha ( COLLADAFW::EffectCommon::OpaqueMode  mode,
COLLADAFW::ColorOrTexture &  cot,
COLLADAFW::FloatOrParam &  val 
)

◆ set_ambient()

void MaterialNode::set_ambient ( COLLADAFW::ColorOrTexture &  cot)

Definition at line 290 of file Materials.cpp.

References col, Color, node, set_color(), and SH_NODE_RGB.

Referenced by DocumentImporter::write_profile_COMMON().

◆ set_diffuse()

void MaterialNode::set_diffuse ( COLLADAFW::ColorOrTexture &  cot)

◆ set_emission()

void MaterialNode::set_emission ( COLLADAFW::ColorOrTexture &  cot)

◆ set_ior()

void MaterialNode::set_ior ( COLLADAFW::FloatOrParam &  val)

◆ set_opacity()

void MaterialNode::set_opacity ( COLLADAFW::ColorOrTexture &  cot)

Definition at line 349 of file Materials.cpp.

References col, Color, bNodeSocket::default_value, nodeFindSocket(), and SOCK_IN.

◆ set_reflective()

void MaterialNode::set_reflective ( COLLADAFW::ColorOrTexture &  cot)

Definition at line 306 of file Materials.cpp.

References col, Color, node, set_color(), and SH_NODE_RGB.

Referenced by DocumentImporter::write_profile_COMMON().

◆ set_reflectivity()

void MaterialNode::set_reflectivity ( COLLADAFW::FloatOrParam &  val)

◆ set_shininess()

void MaterialNode::set_shininess ( COLLADAFW::FloatOrParam &  val)

◆ set_specular()

void MaterialNode::set_specular ( COLLADAFW::ColorOrTexture &  cot)

◆ update_material_nodetree()

void MaterialNode::update_material_nodetree ( )

Definition at line 95 of file Materials.cpp.

References BKE_ntree_update_main_tree(), and CTX_data_main().

Referenced by DocumentImporter::write_profile_COMMON().


The documentation for this class was generated from the following files: