YoggieEngine/MyGraphicsEngine/shaders/vertex.shader
Nigel Barink eb0e7f7a51 Abstracted away the creation of buffers
Added a transform
Updated the TODO.md
Updated default shaders to include the apropriate three 4x4 matrices to
render in 3D
2022-05-04 15:27:42 +02:00

10 lines
181 B
GLSL

#version 440 core
in layout(location=0) vec3 aPos;
uniform mat4 M;
uniform mat4 V;
uniform mat4 P;
void main() {
gl_Position = P * V * M * vec4(aPos.x, aPos.y, aPos.z, 1.0);
}