shader-web-test/vert.glsl

11 lines
232 B
Text
Raw Permalink Normal View History

#version 300 es
precision highp float;
in vec2 vertex_position;
out vec2 texture_coordinates;
void main() {
2024-12-18 00:32:49 -08:00
gl_Position = vec4(vertex_position, 0.5, 1.0);
texture_coordinates = vec2((vertex_position + vec2(1.0)) / 2.0);
}