diff options
Diffstat (limited to 'intern/cycles/kernel/shaders/node_brick_texture.osl')
-rw-r--r-- | intern/cycles/kernel/shaders/node_brick_texture.osl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/intern/cycles/kernel/shaders/node_brick_texture.osl b/intern/cycles/kernel/shaders/node_brick_texture.osl index c9fb3542aef..e26e8dbff2c 100644 --- a/intern/cycles/kernel/shaders/node_brick_texture.osl +++ b/intern/cycles/kernel/shaders/node_brick_texture.osl @@ -11,7 +11,7 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License + * limitations under the License. */ #include "stdosl.h" @@ -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; |