Add debug wireframe rendering support
This commit is contained in:
parent
8041c7e01d
commit
73692b710e
12 changed files with 221 additions and 7 deletions
14
assets/shaders/debug_wireframe.vert
Normal file
14
assets/shaders/debug_wireframe.vert
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#version 330 core
|
||||
|
||||
in vec3 position;
|
||||
in vec4 color;
|
||||
|
||||
uniform mat4 view;
|
||||
uniform mat4 projection;
|
||||
|
||||
out vec4 v_color;
|
||||
|
||||
void main() {
|
||||
v_color = color;
|
||||
gl_Position = projection * view * vec4(position, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue