Zadanie 1 stable shaders code
This commit is contained in:
parent
a0923537f4
commit
dcd8ec7ace
@ -1,5 +1,6 @@
|
||||
#version 330 core
|
||||
out vec4 fragColor;
|
||||
void main(){
|
||||
fragColor = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
out vec4 FragColor;
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(1.0, 1.0, 1.0, 1.0);
|
||||
}
|
||||
|
@ -1,10 +1,6 @@
|
||||
#version 330 core
|
||||
layout (location = 0) in vec3 aPos;
|
||||
|
||||
uniform mat4 model;
|
||||
uniform mat4 view;
|
||||
uniform mat4 projection;
|
||||
|
||||
void main(){
|
||||
gl_Position = projection * view * model * vec4(aPos, 1.0);
|
||||
}
|
||||
layout(location = 0) in vec2 aPos;
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(aPos, 0.0, 1.0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user