Commit: ea8a7397e46b374f65adf0f08f1d0578ccc06126
Author: Sergey Sharybin
Date:   Tue May 31 09:49:27 2016 +0200
Branches: master
https://developer.blender.org/rBea8a7397e46b374f65adf0f08f1d0578ccc06126

Fix T48553: Cycles GLSL Box projection produces strong artifacts

===================================================================

M       source/blender/gpu/shaders/gpu_shader_material.glsl

===================================================================

diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl 
b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 91ca6a5..666857c 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);
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to