Zadanie 1 stable shaders code
This commit is contained in:
parent
a0923537f4
commit
dcd8ec7ace
@ -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);
|
||||||
}
|
}
|
@ -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);
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user