wgpu/tests/in/glsl/quad_glsl.vert
2021-06-19 10:19:04 -04:00

12 lines
229 B
GLSL

#version 450
const float c_scale = 1.2;
layout(location = 0) in vec2 a_pos;
layout(location = 1) in vec2 a_uv;
layout(location = 0) out vec2 v_uv;
void main() {
v_uv = a_uv;
gl_Position = vec4(c_scale * a_pos, 0.0, 1.0);
}