opengl-playground/shaders/2d-passthrough-vertex.glsl

9 lines
140 B
GLSL

#version 330 core
layout (location = 0) in vec2 inputVertex;
void main()
{
gl_Position = vec4(inputVertex.x, inputVertex.y, 0.0, 1.0);
}