demotool/test/fullscreen.v.glsl
Emmanuel BENOîT 68d01ca42e Shaders - Relative paths
Shaders are no longer found under /shaders in the project; they can be
anywhere. In addition, paths for both (program) instructions in the
script and include directives in shader source code are relative to the
file which contains them.
2017-12-29 11:33:15 +01:00

14 lines
187 B
GLSL

#version 450 core
//! type vertex
out gl_PerVertex {
vec4 gl_Position;
};
void main( void )
{
gl_Position = vec4(
vec2( gl_VertexID >> 1 , gl_VertexID & 1 ) * 2 - 1 ,
0 , 1 );
}