S h a d e r s - can sleep now

This commit is contained in:
Ben
2019-10-05 00:10:15 +01:00
parent dbd96ca06f
commit a112e8e4f1
10 changed files with 193 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#version 330
in vec2 TexCoord;
out vec4 outColour;
uniform vec3 triangleColour;
uniform sampler2D tex;
void main() {
outColour = texture(tex, TexCoord);
}

View File

@@ -0,0 +1,15 @@
#version 330
in vec3 position;
in vec2 texcoord;
out vec2 TexCoord;
uniform mat4 model;
uniform mat4 view;
uniform mat4 proj;
void main() {
TexCoord = texcoord;
gl_Position = proj * view * model * vec4(position, 1.0);
}

BIN
resources/textures/dirt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B