20 lines
368 B
GLSL
20 lines
368 B
GLSL
#version 140
|
|
|
|
uniform mat4 perspective;
|
|
uniform mat4 view;
|
|
uniform vec3 texture_size;
|
|
|
|
in vec3 vertex;
|
|
in vec2 tex_coords;
|
|
in vec3 normal;
|
|
|
|
out vec2 v_tex_coords;
|
|
out vec3 v_normal;
|
|
|
|
void main() {
|
|
v_normal = normal;
|
|
v_tex_coords = vec2(tex_coords.x * texture_size.x, tex_coords.y * texture_size.y);
|
|
|
|
gl_Position = perspective * view * vec4(vertex, 1.0);
|
|
}
|