mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Vertex buffer objects+vertex arrays objects+element buffer objects
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#version 400
|
||||
#version 460 core
|
||||
|
||||
uniform float r;
|
||||
in vec3 vertPos;
|
||||
|
||||
void main() {
|
||||
|
||||
gl_Position = vec4(vertPos, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user