Cleanup: DRW: Move ModelMatrix declaration to common_view_lib
[blender.git] / source / blender / draw / modes / shaders / edit_mesh_overlay_mesh_analysis_vert.glsl
1
2 in vec3 pos;
3 in vec4 weight_color;
4
5 #ifdef FACE_COLOR
6 flat out vec4 weightColor;
7 #endif
8
9 #ifdef VERTEX_COLOR
10 out vec4 weightColor;
11 #endif
12
13 void main()
14 {
15   vec3 world_pos = point_object_to_world(pos);
16   gl_Position = point_world_to_ndc(world_pos);
17   weightColor = vec4(weight_color.rgb, 1.0);
18
19 #ifdef USE_WORLD_CLIP_PLANES
20   world_clip_planes_calc_clip_distance(world_pos);
21 #endif
22 }