vectors are now passed to the gpu instead of being embedded to the shader
This commit is contained in:
parent
9029dd50ae
commit
619f4a2641
5 changed files with 91 additions and 25 deletions
|
@ -1,9 +1,9 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) in vec3 in_color;
|
||||
layout(location = 0) in vec3 frag_color;
|
||||
layout(location = 0) out vec4 out_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
out_color = vec4(in_color, 1.0);
|
||||
out_color = vec4(frag_color, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue