[Bf-blender-cvs] [0396a15cbbc] blender2.8: New Outlines: fix upper edge

Clément Foucault noreply at git.blender.org
Mon Mar 27 14:12:43 CEST 2017


Commit: 0396a15cbbcd89aaf6143d2b6b40b0ed09e84e7b
Author: Clément Foucault
Date:   Mon Mar 27 14:09:55 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB0396a15cbbcd89aaf6143d2b6b40b0ed09e84e7b

New Outlines: fix upper edge

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

M	source/blender/draw/modes/shaders/object_outline_detect_frag.glsl

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

diff --git a/source/blender/draw/modes/shaders/object_outline_detect_frag.glsl b/source/blender/draw/modes/shaders/object_outline_detect_frag.glsl
index 0d6173cf4f2..5be9a39bd75 100644
--- a/source/blender/draw/modes/shaders/object_outline_detect_frag.glsl
+++ b/source/blender/draw/modes/shaders/object_outline_detect_frag.glsl
@@ -45,7 +45,7 @@ void main()
 	if (float(uv.x) < viewportSize.x - 1.0)
 		search_outline(uv, ivec2( 1,  0), ref_col, ref_occlu, outline);
 
-	if (float(uv.y) < viewportSize.x - 1.0)
+	if (float(uv.y) < viewportSize.y - 1.0)
 		search_outline(uv, ivec2( 0,  1), ref_col, ref_occlu, outline);
 
 	if (float(uv.x) > 0)




More information about the Bf-blender-cvs mailing list