diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-03-08 01:26:10 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-03-08 01:26:10 +0300 |
commit | e68ac2827dd4f8ad346011a8a408b342e2718707 (patch) | |
tree | f0fb4ea81fe77184bf8587f7aa1455648ce19879 /source/blender/collada/collada_utils.h | |
parent | 92d185faebeac60ec2591c2a7c0f870e7726593d (diff) |
fix D4476 collada exporter: in Blender 2.80 we no longer have a specular color.
Specularity is not a color but a factor.
I have replaced the original export code with
a correct export of the Specularity factor.
Diffstat (limited to 'source/blender/collada/collada_utils.h')
-rw-r--r-- | source/blender/collada/collada_utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/collada/collada_utils.h b/source/blender/collada/collada_utils.h index 32c89cf41e6..b68da4e8154 100644 --- a/source/blender/collada/collada_utils.h +++ b/source/blender/collada/collada_utils.h @@ -310,8 +310,8 @@ 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(bNode *shader); +bool bc_get_reflectivity(bNode *shader, double &reflectivity); +double bc_get_reflectivity(Material *ma); COLLADASW::ColorOrTexture bc_get_base_color(Material *ma); -COLLADASW::ColorOrTexture bc_get_specular_color(bNode *shader); -COLLADASW::ColorOrTexture bc_get_specular_color(Material *ma, bool use_fallback); #endif |