feat: basic triangle rendering
This commit is contained in:
parent
022b4ab77c
commit
cf077635e0
11 changed files with 1828 additions and 67 deletions
10
shaders/shader.vert
Normal file
10
shaders/shader.vert
Normal file
|
@ -0,0 +1,10 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) in vec3 position;
|
||||
layout(location = 1) in vec3 color;
|
||||
layout(location = 0) out vec3 out_color;
|
||||
|
||||
void main() {
|
||||
gl_Position = vec4(position, 1.0);
|
||||
out_color = color;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue