shader-web-test/vert.glsl
2024-12-18 08:32:49 +00:00

10 lines
232 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);
}