Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/dist/shaders/quad.vert

13 lines
227 B
GLSL
Raw Normal View History

2024-01-03 16:05:02 -05:00
layout(location = 0) in vec3 inPosition;
layout(location = 0) out vec2 uv;
out gl_PerVertex {
vec4 gl_Position;
};
void main() {
gl_Position = vec4(inPosition, 1.0);
uv = inPosition.xy * vec2(0.5) + vec2(0.5);
}