S h a d e r s - can sleep now
This commit is contained in:
12
resources/shaders/simple.frag
Normal file
12
resources/shaders/simple.frag
Normal 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);
|
||||
}
|
||||
15
resources/shaders/simple.vert
Normal file
15
resources/shaders/simple.vert
Normal 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
BIN
resources/textures/dirt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 266 B |
BIN
resources/textures/grass_side.png
Normal file
BIN
resources/textures/grass_side.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 660 B |
BIN
resources/textures/grass_top.png
Normal file
BIN
resources/textures/grass_top.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 766 B |
Reference in New Issue
Block a user