diff options
Diffstat (limited to 'source/blender/draw/modes/shaders/object_outline_prepass_geom.glsl')
-rw-r--r-- | source/blender/draw/modes/shaders/object_outline_prepass_geom.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/modes/shaders/object_outline_prepass_geom.glsl b/source/blender/draw/modes/shaders/object_outline_prepass_geom.glsl index 85da0f25654..36999267ef2 100644 --- a/source/blender/draw/modes/shaders/object_outline_prepass_geom.glsl +++ b/source/blender/draw/modes/shaders/object_outline_prepass_geom.glsl @@ -33,8 +33,9 @@ void main() /* If both adjacent verts are facing the camera the same way, * then it isn't an outline edge. */ - if (sign(fac0) == sign(fac3)) + if (sign(fac0) == sign(fac3)) { return; + } /* Don't outline if concave edge. */ /* That would hide a lot of non useful edge but it flickers badly. |