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_frag.glsl
parent97e53d2385cd0b72add07bff4df1f8bc660f51fb (diff)
Cleanup: style, use braces in GPU
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_point_varying_color_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_point_varying_color_frag.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_point_varying_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_point_varying_color_frag.glsl
index ba8321aa295..86c0e5c950a 100644
--- a/source/blender/gpu/shaders/gpu_shader_point_varying_color_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_point_varying_color_frag.glsl
@@ -9,8 +9,9 @@ void main()
const float rad_squared = 0.25;
// round point with jaggy edges
- if (dist_squared > rad_squared)
+ if (dist_squared > rad_squared) {
discard;
+ }
fragColor = finalColor;
}