From ea8a7397e46b374f65adf0f08f1d0578ccc06126 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 31 May 2016 09:49:27 +0200 Subject: [PATCH] Fix T48553: Cycles GLSL Box projection produces strong artifacts --- source/blender/gpu/shaders/gpu_shader_material.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl index 91ca6a51bbb..666857cb42d 100644 --- a/source/blender/gpu/shaders/gpu_shader_material.glsl +++ b/source/blender/gpu/shaders/gpu_shader_material.glsl @@ -2976,7 +2976,7 @@ void node_tex_image_box(vec3 texco, /* Desperate mode, no valid choice anyway, fallback to one side.*/ weight.x = 1.0; } - + color = vec4(0); if (weight.x > 0.0) { color += weight.x * texture2D(ima, texco.yz); }