diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2016-10-30 18:25:35 +0300 |
---|---|---|
committer | Lukas Stockner <lukas.stockner@freenet.de> | 2016-10-30 18:25:35 +0300 |
commit | 2e9dd1200f76818ee385e0c16831c5e8607ad186 (patch) | |
tree | fa0b2afaeee14231f8bf5ec51f4634d02b8a7fd4 /intern/cycles | |
parent | 5050572e898993fc0ddcd01be9b728a73c53b3bc (diff) |
Cycles: Fix OpenCL compilation with the new brick texture
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/svm/svm_brick.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/svm_brick.h b/intern/cycles/kernel/svm/svm_brick.h index 47e1ba2ba6b..14245cf0522 100644 --- a/intern/cycles/kernel/svm/svm_brick.h +++ b/intern/cycles/kernel/svm/svm_brick.h @@ -112,7 +112,7 @@ ccl_device void svm_node_tex_brick(KernelGlobals *kg, ShaderData *sd, float *sta } if(stack_valid(color_offset)) - stack_store_float3(stack, color_offset, lerp(color1, mortar, f)); + stack_store_float3(stack, color_offset, color1*(1.0f-f) + mortar*f); if(stack_valid(fac_offset)) stack_store_float(stack, fac_offset, f); } |