spacebox/demo/camera/shaders/flat.vert

26 lines
748 B
GLSL

#version 300 es
/* +------------------------------------------------------+
____/ \____ /| - Open source game framework licensed to freely use, |
\ / / | copy, modify and sell without restriction |
+--\ ^__^ /--+ | |
| ~/ \~ | | - created for <https://foam.shampoo.ooo> |
| ~~~~~~~~~~~~ | +------------------------------------------------------+
| SPACE ~~~~~ | /
| ~~~~~~~ BOX |/
+-------------*/
/* The precision declaration is required by OpenGL ES */
precision mediump float;
in vec2 in_position;
in vec2 vertex_uv;
out vec2 uv;
void main(void)
{
gl_Position = vec4(in_position, 0.0, 1.0);
uv = vertex_uv;
}