13 lines
170 B
Text
13 lines
170 B
Text
|
#version 450 core
|
||
|
|
||
|
out gl_PerVertex {
|
||
|
vec4 gl_Position;
|
||
|
};
|
||
|
|
||
|
void main( void )
|
||
|
{
|
||
|
gl_Position = vec4(
|
||
|
vec2( gl_VertexID >> 1 , gl_VertexID & 1 ) * 2 - 1 ,
|
||
|
0 , 1 );
|
||
|
}
|