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

paint_texture_vert.glsl « shaders « modes « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 564f988348e7ba6b8599ab6df1fdff5ae0990887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

in vec2 u; /* active uv map */
in vec3 pos;

#ifdef TEXTURE_PAINT_MASK
in vec2 mu; /* masking uv map */
#endif

out vec2 uv_interp;

#ifdef TEXTURE_PAINT_MASK
out vec2 masking_uv_interp;
#endif

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

  uv_interp = u;

#ifdef TEXTURE_PAINT_MASK
  masking_uv_interp = mu;
#endif

#ifdef USE_WORLD_CLIP_PLANES
  world_clip_planes_calc_clip_distance(world_pos);
#endif
}