kubi/shaders/selection_box.vert

11 lines
201 B
GLSL
Raw Normal View History

2023-01-27 21:35:55 -06:00
#version 150 core
in vec3 position;
uniform ivec3 u_position;
2023-01-27 21:35:55 -06:00
uniform mat4 perspective;
uniform mat4 view;
void main() {
gl_Position = perspective * view * vec4(position + vec3(u_position), 1.);
2023-01-27 21:35:55 -06:00
}