texture: First image load
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Has been cancelled

This commit is contained in:
Florian RICHER 2025-05-27 22:25:17 +02:00
parent 5b0ab19207
commit 29a4da5666
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
11 changed files with 220 additions and 72 deletions

View file

@ -1,9 +1,12 @@
#version 450
layout (location = 0) in vec3 color;
layout (location = 0) in vec2 tex_coords;
layout (location = 0) out vec4 f_color;
layout(set = 1, binding = 0) uniform sampler mySampler;
layout(set = 1, binding = 1) uniform texture2D myTexture;
void main() {
f_color = vec4(color, 1.0);
}
f_color = texture(sampler2D(myTexture, mySampler), tex_coords);
}