Added -s mtl option
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user