Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-05-31 10:49:27 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2016-06-08 22:45:40 +0300
commit2e40001ffaa66a0b7e2805db4b2117096708625b (patch)
tree523e2b9044ee8ae6fa70bab0656aca4869742648
parent28bb7da5345b4d93b1f70420a106277407d3a65a (diff)
Fix T48553: Cycles GLSL Box projection produces strong artifacts
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl2
1 files changed, 1 insertions, 1 deletions
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);
}