github.com/cybriq/giocore@v0.0.7-0.20210703034601-cfb9cb5f3900/gpu/shaders/copy.vert (about)

     1  #version 310 es
     2  
     3  // SPDX-License-Identifier: Unlicense OR MIT
     4  
     5  precision highp float;
     6  
     7  void main() {
     8  	switch (gl_VertexIndex) {
     9  	case 0:
    10  		gl_Position = vec4(-1.0, +1.0, 0.0, 1.0);
    11  		break;
    12  	case 1:
    13  		gl_Position = vec4(+1.0, +1.0, 0.0, 1.0);
    14  		break;
    15  	case 2:
    16  		gl_Position = vec4(-1.0, -1.0, 0.0, 1.0);
    17  		break;
    18  	case 3:
    19  		gl_Position = vec4(+1.0, -1.0, 0.0, 1.0);
    20  		break;
    21  	}
    22  }