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

overlay_edit_uv_tiled_image_borders_vert.glsl « shaders « overlay « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bc5235b9cabcd3cd6268828e3ae9e14222705568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma BLENDER_REQUIRE(common_view_lib.glsl)

#ifndef USE_GPU_SHADER_CREATE_INFO
in vec3 pos;
#endif

void main()
{
  /* `pos` contains the coordinates of a quad (-1..1). but we need the coordinates of an image
   * plane (0..1) */
  vec3 image_pos = pos * 0.5 + 0.5;
  vec4 position = point_object_to_ndc(image_pos);
  gl_Position = position;
}