diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_2D_area_borders_frag.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_2D_area_borders_frag.glsl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_2D_area_borders_frag.glsl b/source/blender/gpu/shaders/gpu_shader_2D_area_borders_frag.glsl index 620568db500..5a36b414229 100644 --- a/source/blender/gpu/shaders/gpu_shader_2D_area_borders_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_2D_area_borders_frag.glsl @@ -8,9 +8,9 @@ out vec4 fragColor; void main() { - /* Should be 0.8 but minimize the AA on the edges. */ - float dist = (length(uv) - 0.78) * scale; + /* Should be 0.8 but minimize the AA on the edges. */ + float dist = (length(uv) - 0.78) * scale; - fragColor = color; - fragColor.a *= smoothstep(-0.09, 1.09, dist); + fragColor = color; + fragColor.a *= smoothstep(-0.09, 1.09, dist); } |