feat(rendering): rendering textures with camera

This commit is contained in:
Chance 2025-04-17 20:33:28 -04:00
parent 506c9a1146
commit 2e6d6a7ba0
Signed by: caznix
GPG key ID: 489D213143D753FD
9 changed files with 1037 additions and 329 deletions

View file

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