R2 Core Shaders

R2DebugPositionOnly.vert
Go to the documentation of this file.
1 /// \file R2DebugPositionOnly.vert
2 /// \brief Assumes vertex positions are in clip space and ignores other attributes
3
4 layout(location = 0) in vec3 R2_vertex_position;
5
6 void
7 main (void)
8 {
9 gl_Position = vec4 (R2_vertex_position, 1.0);
10 }
layout
layout(location=0) in vec3 R2_vertex_world_position
World-space position.