Added -s mtl option

This commit is contained in:
2018-06-20 17:24:33 +02:00
parent a487822790
commit 2b9a1064a7
6 changed files with 49 additions and 20 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
uniform mat4 perspective;
uniform mat4 view;
uniform vec3 texture_size;
in vec3 vertex;
in vec2 tex_coords;
@@ -12,7 +13,7 @@ out vec3 v_normal;
void main() {
v_normal = normal;
v_tex_coords = tex_coords;
v_tex_coords = vec2(tex_coords.x * texture_size.x, tex_coords.y * texture_size.y);
gl_Position = perspective * view * vec4(vertex, 1.0);
}