[Bf-blender-cvs] [2e40001] compositor-2016: Fix T48553: Cycles GLSL Box projection produces strong artifacts
Sergey Sharybin
noreply at git.blender.org
Wed Jun 8 21:51:40 CEST 2016
Commit: 2e40001ffaa66a0b7e2805db4b2117096708625b
Author: Sergey Sharybin
Date: Tue May 31 09:49:27 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rB2e40001ffaa66a0b7e2805db4b2117096708625b
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);
}
More information about the Bf-blender-cvs
mailing list