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:
Brecht Van Lommel
2011-10-19 00:13:41 +00:00
parent 97e58e499d
commit 72e47de8b5
4 changed files with 38 additions and 13 deletions

View File

@@ -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)