shader-web-test/vert.glsl
2024-12-18 07:34:53 +00:00

13 lines
236 B
GLSL

#version 300 es
precision highp float;
in vec2 vertex_position;
out vec2 texture_coordinates;
void main() {
gl_Position = vec4( vertex_position, 0.5, 1.0 );
texture_coordinates = vec2( (vertex_position + vec2(1.0) ) / 2.0 );
}