diff options
author | Dalai Felinto <dalai@blender.org> | 2022-05-30 17:17:25 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2022-05-30 17:17:25 +0300 |
commit | de610d06a6b7c169c44138717a54baa890105730 (patch) | |
tree | edcf36cc05bb152f2a957f8385be99009e9ee593 /source/blender/draw/intern | |
parent | afd81e26af9e8179578873a22fb07965b648f458 (diff) |
Cleanup: make format
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/shaders/common_subdiv_ibo_lines_comp.glsl | 13 | ||||
-rw-r--r-- | source/blender/draw/intern/shaders/common_subdiv_ibo_tris_comp.glsl | 26 |
2 files changed, 20 insertions, 19 deletions
diff --git a/source/blender/draw/intern/shaders/common_subdiv_ibo_lines_comp.glsl b/source/blender/draw/intern/shaders/common_subdiv_ibo_lines_comp.glsl index 5084dcc0746..3244b7960d8 100644 --- a/source/blender/draw/intern/shaders/common_subdiv_ibo_lines_comp.glsl +++ b/source/blender/draw/intern/shaders/common_subdiv_ibo_lines_comp.glsl @@ -35,7 +35,8 @@ void emit_line(uint line_offset, uint quad_index, uint start_loop_index, uint co uint coarse_quad_index = coarse_polygon_index_from_subdiv_quad_index(quad_index, coarse_poly_count); - if (is_face_hidden(coarse_quad_index) || (input_origindex[vertex_index] == ORIGINDEX_NONE && optimal_display)) { + if (is_face_hidden(coarse_quad_index) || + (input_origindex[vertex_index] == ORIGINDEX_NONE && optimal_display)) { output_lines[line_offset + 0] = 0xffffffff; output_lines[line_offset + 1] = 0xffffffff; } @@ -62,13 +63,13 @@ void main() uint loop_index = num_subdiv_loops + index * 2; if (lines_loose_flags[index] != 0) { - /* Line is hidden. */ - output_lines[line_offset] = 0xffffffff; - output_lines[line_offset + 1] = 0xffffffff; + /* Line is hidden. */ + output_lines[line_offset] = 0xffffffff; + output_lines[line_offset + 1] = 0xffffffff; } else { - output_lines[line_offset] = loop_index; - output_lines[line_offset + 1] = loop_index + 1; + output_lines[line_offset] = loop_index; + output_lines[line_offset + 1] = loop_index + 1; } #else diff --git a/source/blender/draw/intern/shaders/common_subdiv_ibo_tris_comp.glsl b/source/blender/draw/intern/shaders/common_subdiv_ibo_tris_comp.glsl index f1275b36c34..ce3c8478d3f 100644 --- a/source/blender/draw/intern/shaders/common_subdiv_ibo_tris_comp.glsl +++ b/source/blender/draw/intern/shaders/common_subdiv_ibo_tris_comp.glsl @@ -46,19 +46,19 @@ void main() #endif if (is_face_hidden(coarse_quad_index)) { - output_tris[triangle_loop_index + 0] = 0xffffffff; - output_tris[triangle_loop_index + 1] = 0xffffffff; - output_tris[triangle_loop_index + 2] = 0xffffffff; - output_tris[triangle_loop_index + 3] = 0xffffffff; - output_tris[triangle_loop_index + 4] = 0xffffffff; - output_tris[triangle_loop_index + 5] = 0xffffffff; + output_tris[triangle_loop_index + 0] = 0xffffffff; + output_tris[triangle_loop_index + 1] = 0xffffffff; + output_tris[triangle_loop_index + 2] = 0xffffffff; + output_tris[triangle_loop_index + 3] = 0xffffffff; + output_tris[triangle_loop_index + 4] = 0xffffffff; + output_tris[triangle_loop_index + 5] = 0xffffffff; } else { - output_tris[triangle_loop_index + 0] = loop_index + 0; - output_tris[triangle_loop_index + 1] = loop_index + 1; - output_tris[triangle_loop_index + 2] = loop_index + 2; - output_tris[triangle_loop_index + 3] = loop_index + 0; - output_tris[triangle_loop_index + 4] = loop_index + 2; - output_tris[triangle_loop_index + 5] = loop_index + 3; - } + output_tris[triangle_loop_index + 0] = loop_index + 0; + output_tris[triangle_loop_index + 1] = loop_index + 1; + output_tris[triangle_loop_index + 2] = loop_index + 2; + output_tris[triangle_loop_index + 3] = loop_index + 0; + output_tris[triangle_loop_index + 4] = loop_index + 2; + output_tris[triangle_loop_index + 5] = loop_index + 3; + } } |