mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
VBOs+attributes+drawing with VBOs
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
#version 460
|
||||
|
||||
out vec4 FragColor;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(1, 0, 0, 1.0);
|
||||
fragColor = vec4(1, 1, 1, 1.0);
|
||||
}
|
||||
|
||||
@ -4,5 +4,5 @@ in vec3 vertPos;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(vertPos, 1.0);
|
||||
gl_Position = vec4(vertPos, 1.0); // vec4(vertPos.x, vertPos.y, vertPos.z, 1.0)
|
||||
}
|
||||
Reference in New Issue
Block a user