2017-10-01 18:51:02 +02:00
|
|
|
#version 450 core
|
|
|
|
|
2017-10-04 17:29:48 +02:00
|
|
|
//! type vertex
|
|
|
|
|
2017-10-01 18:51:02 +02:00
|
|
|
out gl_PerVertex {
|
|
|
|
vec4 gl_Position;
|
|
|
|
};
|
|
|
|
|
|
|
|
void main( void )
|
|
|
|
{
|
|
|
|
gl_Position = vec4(
|
|
|
|
vec2( gl_VertexID >> 1 , gl_VertexID & 1 ) * 2 - 1 ,
|
|
|
|
0 , 1 );
|
|
|
|
}
|