feat(render): basic normal-based lighting

This commit is contained in:
Chance 2025-04-27 16:06:59 -04:00
parent 5e2cb15e13
commit 22a58044d5
Signed by: caznix
GPG key ID: 489D213143D753FD
2 changed files with 12 additions and 0 deletions

View file

@ -2,14 +2,17 @@
layout(location = 0) in vec3 position;
layout(location = 1) in vec3 color;
layout(location = 2) in vec3 normal_in;
layout(location = 3) in vec2 tex_coords;
layout(location = 0) out vec2 tex_coord;
layout(location = 1) out vec3 normal;
layout(set = 0, binding = 0) uniform UniformBufferObject {
mat4x4 projection;
} view;
void main() {
gl_Position = view.projection * vec4(position, 1.0);
tex_coord = tex_coords;
normal = normal_in;
// gl_Position
// out_color = color;
}