Welcome to mirror list, hosted at ThFree Co, Russian Federation.

edit_curve_overlay_handle_vert.glsl « shaders « modes « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1773414a3fcf37e59fc63be4a9b4e502a40d729e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Draw Curve Handles */
uniform mat4 ModelMatrix;

in vec3 pos;
in int data;

flat out int vertFlag;

void main()
{
  vec3 world_pos = point_object_to_world(pos);
  gl_Position = point_world_to_ndc(world_pos);
  vertFlag = data;

#ifdef USE_WORLD_CLIP_PLANES
  world_clip_planes_calc_clip_distance(world_pos);
#endif
}