added a shader class and converted existing shaders to files

This commit is contained in:
Lukian 2025-01-28 14:39:18 +01:00
parent 3428be29ae
commit b21b9398e6
6 changed files with 160 additions and 65 deletions

7
shaders/shader.vs Normal file
View file

@ -0,0 +1,7 @@
#version 330 core
layout (location = 0) in vec3 aPos;
void main()
{
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
}