qt-scene-editor/FinalProject/boundvertexshader.glsl
Linloir 7321455581
[CORE][ADD] Bounding box display
- Add render API in bounding box
- Add getter API in renderer to get bounding box
2022-12-18 20:05:08 +08:00

10 lines
178 B
GLSL

#version 430 core
layout(location = 0) in vec3 position;
uniform mat4 view;
uniform mat4 projection;
void main() {
gl_Position = projection * view * vec4(position, 1.0);
}