[Bf-blender-cvs] [1d405032109] temp-udim-images: Change out-of-bounds color for tiled images in GLSL to match missing images

Lukas Stockner noreply at git.blender.org
Mon Jun 11 22:21:57 CEST 2018


Commit: 1d4050321091145ac51d717f73ac1d97d8460443
Author: Lukas Stockner
Date:   Mon Jun 11 22:21:14 2018 +0200
Branches: temp-udim-images
https://developer.blender.org/rB1d4050321091145ac51d717f73ac1d97d8460443

Change out-of-bounds color for tiled images in GLSL to match missing images

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

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 ecab30bbb97..2a95007ee23 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -1802,7 +1802,7 @@ void node_tex_image_tiled_map(vec3 co, out vec4 color, out vec3 map)
 	else
 		map = vec3(co.x - tx, co.y - ty, 10*ty + tx);
 
-	color = vec4(0.0);
+	color = vec4(1.0, 0.0, 1.0, 1.0);
 }
 
 void node_tex_image_tile(vec3 map, float tile_id, sampler2D ima, vec4 in_color, out vec4 color, out float alpha)



More information about the Bf-blender-cvs mailing list