engine/assets/shaders/mesh.vert.glsl
sergeypdev d91484e992 Redo how assets are loaded, remove explicit load/unload calls
This will make code simpler because game code will never explicitly
unload assets or retain runtime asset handles!
2024-02-08 21:48:18 +04:00

19 lines
376 B
GLSL

#version 450 core
layout(location = 0) in vec3 aPos;
layout(location = 1) in vec3 aNorm;
layout(location = 0) out vec3 normal;
layout(std140, binding = 0) uniform Matrices {
mat4 projection;
mat4 view;
};
layout(location = 1) uniform mat4 model;
void main() {
gl_Position = projection * view * model * vec4(aPos.xyz, 1.0);
normal = aNorm;
}