diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-06-03 17:34:47 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-06-03 17:35:01 +0300 |
commit | 97e53d2385cd0b72add07bff4df1f8bc660f51fb (patch) | |
tree | 1bc4d0f35e7402d9ef701b66b145a9dfe79c7bb2 /source/blender/collada/collada_utils.h | |
parent | 1f650c402d3b43eee7cb51c7d4f373ba82ac2116 (diff) |
fix collada: get Alpha and Emission from principled BSDF Shader
Diffstat (limited to 'source/blender/collada/collada_utils.h')
-rw-r--r-- | source/blender/collada/collada_utils.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/collada/collada_utils.h b/source/blender/collada/collada_utils.h index e142d4c77db..7836b1ede86 100644 --- a/source/blender/collada/collada_utils.h +++ b/source/blender/collada/collada_utils.h @@ -385,9 +385,15 @@ class BoneExtensionManager { void bc_add_default_shader(bContext *C, Material *ma); bNode *bc_get_master_shader(Material *ma); COLLADASW::ColorOrTexture bc_get_cot(float r, float g, float b, float a); + +COLLADASW::ColorOrTexture bc_get_base_color(Material *ma); COLLADASW::ColorOrTexture bc_get_base_color(bNode *shader); -bool bc_get_reflectivity(bNode *shader, double &reflectivity); +COLLADASW::ColorOrTexture bc_get_emission(Material *ma); +COLLADASW::ColorOrTexture bc_get_emission(bNode *shader); + double bc_get_reflectivity(Material *ma); -COLLADASW::ColorOrTexture bc_get_base_color(Material *ma); +bool bc_get_reflectivity(bNode *shader, double &emission); +double bc_get_alpha(Material *ma); +bool bc_get_alpha(bNode *shader, double &alpha); #endif |