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-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/draw/modes/shaders/edit_normals_geom.glsl
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/draw/modes/shaders/edit_normals_geom.glsl')
-rw-r--r--source/blender/draw/modes/shaders/edit_normals_geom.glsl14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/draw/modes/shaders/edit_normals_geom.glsl b/source/blender/draw/modes/shaders/edit_normals_geom.glsl
index 91a57a79eb0..5f43c13478d 100644
--- a/source/blender/draw/modes/shaders/edit_normals_geom.glsl
+++ b/source/blender/draw/modes/shaders/edit_normals_geom.glsl
@@ -1,18 +1,18 @@
layout(points) in;
-layout(line_strip, max_vertices=2) out;
+layout(line_strip, max_vertices = 2) out;
flat in vec4 v1[1];
flat in vec4 v2[1];
void main()
{
- for (int v = 0; v < 2; v++) {
- gl_Position = (v == 0) ? v1[0] : v2[0];
+ for (int v = 0; v < 2; v++) {
+ gl_Position = (v == 0) ? v1[0] : v2[0];
#ifdef USE_WORLD_CLIP_PLANES
- world_clip_planes_set_clip_distance(gl_in[0].gl_ClipDistance);
+ world_clip_planes_set_clip_distance(gl_in[0].gl_ClipDistance);
#endif
- EmitVertex();
- }
- EndPrimitive();
+ EmitVertex();
+ }
+ EndPrimitive();
}