Zadanie 1 stable shaders code

This commit is contained in:
Władysław Kuczerenko 2024-06-09 22:57:10 +02:00
parent a0923537f4
commit dcd8ec7ace
2 changed files with 10 additions and 13 deletions

View File

@ -1,5 +1,6 @@
#version 330 core #version 330 core
out vec4 fragColor; out vec4 FragColor;
void main(){ void main()
fragColor = vec4(1.0, 0.0, 0.0, 1.0); {
} FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}

View File

@ -1,10 +1,6 @@
#version 330 core #version 330 core
layout (location = 0) in vec3 aPos; layout(location = 0) in vec2 aPos;
void main()
uniform mat4 model; {
uniform mat4 view; gl_Position = vec4(aPos, 0.0, 1.0);
uniform mat4 projection; }
void main(){
gl_Position = projection * view * model * vec4(aPos, 1.0);
}