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

@ -1,8 +1,10 @@
#version 450
layout(location = 0) in vec3 color;
layout(location = 0) in vec2 tex_coords;
layout(set = 0, binding = 0) uniform texture2D t_diffuse;
layout(set = 0, binding = 1) uniform sampler s_diffuse;
layout(location = 0) out vec4 out_color;
// layout(group = 0, binding = 0) out texture2D;
void main() {
out_color = vec4(color, 1.0);
out_color = texture(sampler2D(t_diffuse, s_diffuse), tex_coords);
}