sprite colors

This commit is contained in:
galister
2025-06-28 19:28:28 +09:00
parent d7c31d8699
commit 247c51c3b7
3 changed files with 19 additions and 3 deletions

View File

@@ -14,9 +14,9 @@ layout(set = 1, binding = 0) uniform sampler2D mask_atlas;
void main() {
if (in_content_type == 0u) {
out_color = texture(color_atlas, in_uv);
out_color = texture(color_atlas, in_uv) * in_color;
} else {
out_color.rgb = in_color.rgb;
out_color.a = in_color.a * texture(mask_atlas, in_uv).r;
}
}
}