This repository has been archived on 2023-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
api8/shaders/manif.vs
2023-05-08 12:16:29 +02:00

16 lines
330 B
GLSL

#version 330
layout(location = 0) in vec3 pos;
layout(location = 1) in vec3 normal;
out vec4 pos_model;
out vec3 vec_normal;
uniform mat4 proj, model, view;
void main() {
pos_model = model * vec4(pos, 1);
vec_normal = normalize(transpose(inverse(model)) * vec4(normal, 0)).xyz;
gl_Position = proj * view * pos_model;
}