Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Strand <astrand130>2020-09-22 16:45:38 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-09-22 17:07:37 +0300
commit3873a0f4908a9fe4770013bc8db0c2762e638015 (patch)
tree8e7a75eb1720202ddf5ac05d80a5dc5898e02605 /source/blender/io/collada/Materials.cpp
parentb21e2cfd03f079a04a1527fc3c9ec34084278bd8 (diff)
Fix COLLADA failing to export HDR emission strength
HDR is not supported by COLLADA, so clamp to export the closest approximation. Differential Revision: https://developer.blender.org/D8955
Diffstat (limited to 'source/blender/io/collada/Materials.cpp')
-rw-r--r--source/blender/io/collada/Materials.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/io/collada/Materials.cpp b/source/blender/io/collada/Materials.cpp
index 16a9691d67e..1e02e151d97 100644
--- a/source/blender/io/collada/Materials.cpp
+++ b/source/blender/io/collada/Materials.cpp
@@ -317,6 +317,7 @@ void MaterialNode::set_emission(COLLADAFW::ColorOrTexture &cot)
fcol[2] = col.getBlue();
fcol[3] = col.getAlpha();
}
+ // texture
else if (cot.isTexture()) {
bNode *texture_node = add_texture_node(cot, -300, locy, "Emission");
if (texture_node != NULL) {