Cleanup & refactor
This commit is contained in:
parent
ef901d4a48
commit
a8ecb75b2d
|
@ -1,9 +0,0 @@
|
||||||
#version 330 core
|
|
||||||
|
|
||||||
in vec4 color;
|
|
||||||
out vec4 out_frag_color;
|
|
||||||
|
|
||||||
void main(void)
|
|
||||||
{
|
|
||||||
out_frag_color = color;
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
#version 330 core
|
|
||||||
|
|
||||||
uniform mat4 projection_matrix;
|
|
||||||
uniform mat4 model_matrix;
|
|
||||||
uniform mat4 view_matrix;
|
|
||||||
|
|
||||||
layout(location=0) in vec3 in_position;
|
|
||||||
layout(location=1) in vec3 in_color;
|
|
||||||
|
|
||||||
out vec4 color;
|
|
||||||
|
|
||||||
void main(void)
|
|
||||||
{
|
|
||||||
gl_Position = projection_matrix * view_matrix * model_matrix * vec4(in_position, 1);
|
|
||||||
color = vec4(1 * in_color.rgb, 1);
|
|
||||||
}
|
|
Loading…
Reference in New Issue