diff options
Diffstat (limited to 'shaders/vertex.vsh')
-rw-r--r-- | shaders/vertex.vsh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/shaders/vertex.vsh b/shaders/vertex.vsh new file mode 100644 index 0000000..d195db3 --- /dev/null +++ b/shaders/vertex.vsh @@ -0,0 +1,11 @@ +# version 330 core + +layout (location = 0) in vec3 aPos; + +out vec4 vertexColor; + +void main() +{ + gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0f); + vertexColor = vec4(0.2, 0.7, 0.2, 0.8); +} |