Fix T48553: Cycles GLSL Box projection produces strong artifacts

This commit is contained in:
Sergey Sharybin 2016-05-31 09:49:27 +02:00
parent 4f730b4708
commit ea8a7397e4
Notes: blender-bot 2023-02-14 07:51:25 +01:00
Referenced by issue #48553, Cycles GLSL - Box projection in Image node produces strong artifacts.
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}