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

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

#ifdef CONSERVATIVE_RASTER
RESOURCE_ID_VARYING
#endif

in vec3 pos;

void main()
{
  GPU_INTEL_VERTEX_SHADER_WORKAROUND
#ifdef CONSERVATIVE_RASTER
  PASS_RESOURCE_ID
#endif

  vec3 world_pos = point_object_to_world(pos);
  gl_Position = point_world_to_ndc(world_pos);

#ifdef USE_WORLD_CLIP_PLANES
  world_clip_planes_calc_clip_distance(world_pos);
#endif
}