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

@@ -179,7 +179,7 @@ __device_noinline void svm_eval_nodes(KernelGlobals *kg, ShaderData *sd, ShaderT
svm_node_closure_emission(sd, stack, node);
break;
case NODE_CLOSURE_BACKGROUND:
svm_node_closure_background(sd, node);
svm_node_closure_background(sd, stack, node);
break;
case NODE_CLOSURE_HOLDOUT:
svm_node_closure_holdout(sd, stack, node);