add basic shaders and Tile class
This commit is contained in:
parent
569f2dfb00
commit
9124915237
7 changed files with 324 additions and 124 deletions
15
res/shaders/main.frag
Normal file
15
res/shaders/main.frag
Normal file
|
@ -0,0 +1,15 @@
|
|||
#version 150
|
||||
|
||||
uniform sampler2D materialTex;
|
||||
uniform vec4 color;
|
||||
|
||||
|
||||
in vec2 fragTexCoord;
|
||||
in vec3 fragVert;
|
||||
|
||||
out vec4 finalColor;
|
||||
|
||||
void main() {
|
||||
|
||||
finalColor = texture(materialTex, fragTexCoord) * color;
|
||||
}
|
Reference in a new issue