1
0
Fork 0

Bug Fixes

This commit is contained in:
MrDev023 2017-01-14 17:59:15 +01:00
parent 9124915237
commit 18bb7ab823
13 changed files with 469 additions and 272 deletions

View file

@ -3,13 +3,11 @@
uniform sampler2D materialTex;
uniform vec4 color;
in vec2 fragTexCoord;
in vec3 fragVert;
out vec4 finalColor;
void main() {
finalColor = texture(materialTex, fragTexCoord) * color;
}

View file

@ -14,7 +14,6 @@ void main() {
// Pass some variables to the fragment shader
fragTexCoord = vertTexCoord;
fragVert = vert;
fragColor = vertColor;
// Apply all matrix transformations to vert
gl_Position = projection * camera * transform * vec4(vert, 1);

BIN
res/textures/default.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B