Initial commit

This commit is contained in:
Robert 2020-09-04 21:13:22 +02:00
parent 0889e4de0d
commit 10bc916711
456 changed files with 119668 additions and 0 deletions

20
assets/shaders/basic.frag Normal file
View file

@ -0,0 +1,20 @@
#version 460 core
in vec3 VertexColor;
in vec2 TexCoord;
out vec4 fragColor;
uniform sampler2D texture1;
uniform sampler2D texture2;
uniform float t;
void main()
{
fragColor = mix(
texture(texture1, TexCoord + vec2(t, 0)),
texture(texture2, TexCoord + vec2(0, t)), 0.5) * vec4(VertexColor,
1.0
);
}

19
assets/shaders/basic.vert Normal file
View file

@ -0,0 +1,19 @@
#version 460 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aCol;
layout (location = 2) in vec2 aTex;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
out vec3 VertexColor;
out vec2 TexCoord;
void main()
{
gl_Position = projection * view * model * vec4(aPos, 1.0f);
VertexColor = aCol;
TexCoord = aTex;
}

13
assets/shaders/cube.frag Normal file
View file

@ -0,0 +1,13 @@
#version 460 core
out vec4 fragmentColor;
in vec2 textureCoords;
in vec3 vertexCoords;
uniform sampler2D lauch;
void main()
{
fragmentColor = texture(lauch, textureCoords);
}

18
assets/shaders/cube.vert Normal file
View file

@ -0,0 +1,18 @@
#version 460 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec2 aTex;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
out vec3 vertexCoords;
out vec2 textureCoords;
void main()
{
gl_Position = projection * view * model * vec4(aPos, 1.0f);
textureCoords = aTex;
vertexCoords = aPos;
}