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

common_fullscreen_vert.glsl « shaders « intern « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8a7fb97d98c371068a51a9d4be6cee90e01db322 (plain)
1
2
3
4
5
6
7
8
9
10
11

out vec4 uvcoordsvar;

void main()
{
  int v = gl_VertexID % 3;
  float x = -1.0 + float((v & 1) << 2);
  float y = -1.0 + float((v & 2) << 1);
  gl_Position = vec4(x, y, 1.0, 1.0);
  uvcoordsvar = vec4((gl_Position.xy + 1.0) * 0.5, 0.0, 0.0);
}