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:
authorCampbell Barton <ideasman42@gmail.com>2019-06-03 17:36:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-03 17:42:22 +0300
commit0efe89bdd810226f7474b90ab79d927eadf6746a (patch)
tree502cf6d81a9d91a8b8c8c7e236860eb3eac2755f /source/blender/gpu/shaders/gpu_shader_point_varying_color_outline_aa_frag.glsl
parent97e53d2385cd0b72add07bff4df1f8bc660f51fb (diff)
Cleanup: style, use braces in GPU
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_point_varying_color_outline_aa_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_point_varying_color_outline_aa_frag.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_point_varying_color_outline_aa_frag.glsl b/source/blender/gpu/shaders/gpu_shader_point_varying_color_outline_aa_frag.glsl
index 8ddf460a3ac..11694de38ca 100644
--- a/source/blender/gpu/shaders/gpu_shader_point_varying_color_outline_aa_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_point_varying_color_outline_aa_frag.glsl
@@ -27,6 +27,7 @@ void main()
fragColor.rgb = outlineColor.rgb;
fragColor.a = mix(outlineColor.a, 0.0, smoothstep(radii[1], radii[0], dist));
}
- else
+ else {
fragColor = mix(fillColor, outlineColor, smoothstep(radii[3], radii[2], dist));
+ }
}