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

edit_normals_geom.glsl « shaders « modes « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f43c13478dbcf904cad2285afc56b4c57d9dddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

layout(points) in;
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];
#ifdef USE_WORLD_CLIP_PLANES
    world_clip_planes_set_clip_distance(gl_in[0].gl_ClipDistance);
#endif
    EmitVertex();
  }
  EndPrimitive();
}