vox/assets/shaders/teapot/teapot.vert
2022-03-29 07:22:03 -05:00

14 lines
213 B
GLSL

#version 150
in vec3 position;
in vec3 normal;
out vec3 v_normal;
uniform mat4 matrix;
void main() {
v_normal = transpose(inverse(mat3(matrix))) * normal;
gl_Position = matrix * vec4(position, 1.0);
}