This commit is contained in:
pavel 2026-05-29 00:36:55 +02:00
commit 28f0d737b1
18 changed files with 3472 additions and 493 deletions

View file

@ -2,11 +2,16 @@
layout(location = 0) out vec4 out_color;
layout(set = 3, binding = 0) uniform FragmentUniforms {
mat4 u_mvp;
vec4 u_color;
};
layout(location = 0) in vec2 uv;
layout(set = 2, binding = 0) uniform sampler2D tex_sampler;
void main() {
out_color = u_color;
vec4 c = texture(tex_sampler, uv);
float tol = 0.02;
if (distance(c.rgb, vec3(1.0, 0.0, 1.0)) < tol || distance(c.rgb, vec3(0.0, 0.0, 0.0)) < tol) {
discard;
}
out_color = c;
}