Cycles: fix some issues with mix shaders when the weight for an emission shader
was 0.0, and background shader mix wasn't working.
This commit is contained in:
@@ -1370,7 +1370,7 @@ void BackgroundNode::compile(SVMCompiler& compiler)
|
||||
else
|
||||
compiler.add_node(NODE_CLOSURE_SET_WEIGHT, color_in->value*strength_in->value.x);
|
||||
|
||||
compiler.add_node(NODE_CLOSURE_BACKGROUND, CLOSURE_BACKGROUND_ID);
|
||||
compiler.add_node(NODE_CLOSURE_BACKGROUND, compiler.closure_mix_weight_offset());
|
||||
}
|
||||
|
||||
void BackgroundNode::compile(OSLCompiler& compiler)
|
||||
|
Reference in New Issue
Block a user