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

antialiasing_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: 4f3c36c7bd737016037de3efea2eb200d435d08d (plain)
1
2
3
4
5
6
7
8
9
10
11

out vec2 uvs;

void main()
{
  int v = gl_VertexID % 3;
  float x = float((v & 1) << 2);
  float y = float((v & 2) << 1);
  gl_Position = vec4(x - 1.0, y - 1.0, 1.0, 1.0);
  uvs = vec2(x, y) * 0.5;
}