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
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-05-31 10:49:27 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-05-31 10:50:24 +0300
commitea8a7397e46b374f65adf0f08f1d0578ccc06126 (patch)
tree2a9dd5dca8582f7ec6524c43516881459c94de0d /source
parent4f730b4708a4850e7fe35a8d701d5ef013973a92 (diff)
Fix T48553: Cycles GLSL Box projection produces strong artifacts
Diffstat (limited to 'source')
-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);
}