kubi/shaders/selection_box.vert
2023-01-28 04:35:55 +01:00

11 lines
194 B
GLSL

#version 150 core
in vec3 position;
uniform vec3 u_position;
uniform mat4 perspective;
uniform mat4 view;
void main() {
gl_Position = perspective * view * vec4(position + u_position, 1.);
}