Blender V4.5
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 20 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 15 of file Materials.cpp.

References C, nullptr, SH_NODE_BSDF_PRINCIPLED, and SH_NODE_OUTPUT_MATERIAL.

Member Function Documentation

◆ 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 300 of file Materials.cpp.

References col, 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)

◆ set_reflective()

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().

◆ 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 ( )

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