Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.glsl8
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);
}