vox/assets/shaders/teapot/teapot.vert

14 lines
213 B
GLSL
Raw Normal View History

2022-03-29 07:22:03 -05:00
#version 150
2022-03-29 07:07:56 -05:00
in vec3 position;
in vec3 normal;
2022-03-29 07:22:03 -05:00
out vec3 v_normal;
2022-03-29 07:07:56 -05:00
uniform mat4 matrix;
void main() {
2022-03-29 07:22:03 -05:00
v_normal = transpose(inverse(mat3(matrix))) * normal;
2022-03-29 07:07:56 -05:00
gl_Position = matrix * vec4(position, 1.0);
2022-03-29 07:22:03 -05:00
}