diff options
author | Alex Strand <astrand130> | 2020-09-09 12:36:57 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-09-17 19:54:04 +0300 |
commit | b248ec97769fa654a3ee8bb2a643046b79e7c030 (patch) | |
tree | 57604691dd62e4b19b9df5d4109a8dc3f83bacb8 /source/blender/io/collada/Materials.cpp | |
parent | 65fd005312848178509b0a0b0f3febf9f777f529 (diff) |
Shaders: add emission strength input to Principled BSDF node
This impacts I/O add-ons. OBJ, FBX and Collada have been updated, glTF not yet.
Differential Revision: https://developer.blender.org/D4971
Diffstat (limited to 'source/blender/io/collada/Materials.cpp')
-rw-r--r-- | source/blender/io/collada/Materials.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/io/collada/Materials.cpp b/source/blender/io/collada/Materials.cpp index 06f54884668..16a9691d67e 100644 --- a/source/blender/io/collada/Materials.cpp +++ b/source/blender/io/collada/Materials.cpp @@ -323,6 +323,11 @@ void MaterialNode::set_emission(COLLADAFW::ColorOrTexture &cot) add_link(texture_node, 0, shader_node, 0); } } + + bNodeSocket *socket = nodeFindSocket(shader_node, SOCK_IN, "Emission Strength"); + if (socket) { + *(float *)socket->default_value = 1.0f; + } } void MaterialNode::set_opacity(COLLADAFW::ColorOrTexture &cot) |