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_flat_color_alpha_test_0_frag.glsl
parent97e53d2385cd0b72add07bff4df1f8bc660f51fb (diff)
Cleanup: style, use braces in GPU
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_flat_color_alpha_test_0_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_flat_color_alpha_test_0_frag.glsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_flat_color_alpha_test_0_frag.glsl b/source/blender/gpu/shaders/gpu_shader_flat_color_alpha_test_0_frag.glsl
index d1a36c3ee38..6f7d68856d5 100644
--- a/source/blender/gpu/shaders/gpu_shader_flat_color_alpha_test_0_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_flat_color_alpha_test_0_frag.glsl
@@ -4,8 +4,10 @@ out vec4 fragColor;
void main()
{
- if (finalColor.a > 0.0)
+ if (finalColor.a > 0.0) {
fragColor = finalColor;
- else
+ }
+ else {
discard;
+ }
}