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

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

out int instance;
out vec2 vPos;

void main()
{
  int v = gl_VertexID % 3;
  vPos.x = -1.0 + float((v & 1) << 2);
  vPos.y = -1.0 + float((v & 2) << 1);

  instance = gl_VertexID / 3;
}