Vertex buffer objects+vertex arrays objects+element buffer objects

This commit is contained in:
bloeys
2021-10-09 11:56:05 +04:00
parent 4ce5e569fc
commit 97c396e54c
5 changed files with 98 additions and 19 deletions

View File

@ -1,9 +1,9 @@
#version 400
#version 460 core
uniform float r;
uniform vec3 c;
out vec4 color;
out vec4 fragColor;
void main() {
color = vec4(r,r,r,0);
fragColor = vec4(c, 1);
}

View File

@ -1,7 +1,7 @@
#version 400
#version 460 core
uniform float r;
in vec3 vertPos;
void main() {
gl_Position = vec4(vertPos, 1.0);
}