diff options
-rw-r--r-- | intern/cycles/kernel/shaders/node_brick_texture.osl | 5 | ||||
-rw-r--r-- | intern/cycles/kernel/svm/svm_brick.h | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/intern/cycles/kernel/shaders/node_brick_texture.osl b/intern/cycles/kernel/shaders/node_brick_texture.osl index 0b4993e9832..e26e8dbff2c 100644 --- a/intern/cycles/kernel/shaders/node_brick_texture.osl +++ b/intern/cycles/kernel/shaders/node_brick_texture.osl @@ -87,10 +87,7 @@ shader node_brick_texture( if (Fac != 1.0) { float facm = 1.0 - tint; - - Col[0] = facm * (Color1[0]) + tint * Color2[0]; - Col[1] = facm * (Color1[1]) + tint * Color2[1]; - Col[2] = facm * (Color1[2]) + tint * Color2[2]; + Col = facm * Color1 + tint * Color2; } Color = (Fac == 1.0) ? Mortar : Col; diff --git a/intern/cycles/kernel/svm/svm_brick.h b/intern/cycles/kernel/svm/svm_brick.h index a46392cd544..33a2a5c7598 100644 --- a/intern/cycles/kernel/svm/svm_brick.h +++ b/intern/cycles/kernel/svm/svm_brick.h @@ -95,10 +95,7 @@ ccl_device void svm_node_tex_brick(KernelGlobals *kg, ShaderData *sd, float *sta if(f != 1.0f) { float facm = 1.0f - tint; - - color1.x = facm * (color1.x) + tint * color2.x; - color1.y = facm * (color1.y) + tint * color2.y; - color1.z = facm * (color1.z) + tint * color2.z; + color1 = facm * color1 + tint * color2; } if(stack_valid(color_offset)) |