Commit: 183874841b521a9c9e031fe3528db3cf0d826b3a
Author: Sergey Sharybin
Date:   Wed Jul 27 14:04:28 2016 +0200
Branches: master
https://developer.blender.org/rB183874841b521a9c9e031fe3528db3cf0d826b3a

Cycles: Some minor tweaks to emission sharder

- Nodification of shader nodes changed default strength from 10 to 1.
  If that was intentional, IMO should happen as a separate commit.

- Fixed indentation.

===================================================================

M       intern/cycles/render/nodes.cpp

===================================================================

diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index e26084c..ed4debd 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -2323,7 +2323,7 @@ NODE_DEFINE(EmissionNode)
        NodeType* type = NodeType::add("emission", create, NodeType::SHADER);
 
        SOCKET_IN_COLOR(color, "Color", make_float3(0.8f, 0.8f, 0.8f));
-       SOCKET_IN_FLOAT(strength, "Strength", 1.0f);
+       SOCKET_IN_FLOAT(strength, "Strength", 10.0f);
        SOCKET_IN_FLOAT(surface_mix_weight, "SurfaceMixWeight", 0.0f, 
SocketType::SVM_INTERNAL);
 
        SOCKET_OUT_CLOSURE(emission, "Emission");
@@ -2344,7 +2344,7 @@ void EmissionNode::compile(SVMCompiler& compiler)
        if(color_in->link || strength_in->link) {
                compiler.add_node(NODE_EMISSION_WEIGHT,
                                  compiler.stack_assign(color_in),
-                                                 
compiler.stack_assign(strength_in));
+                                 compiler.stack_assign(strength_in));
        }
        else
                compiler.add_node(NODE_CLOSURE_SET_WEIGHT, color * strength);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to