Emmanuel BENOîT
68d01ca42e
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.
14 lines
187 B
GLSL
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 );
|
|
}
|