slicedscreenquad_nvworkaround.vert 150 B

123456789101112
  1. uniform int slice;
  2. in vec2 Position;
  3. in vec2 Texcoord;
  4. out int layer;
  5. void main() {
  6. layer = slice;
  7. gl_Position = vec4(Position, 0., 1.);
  8. }