Added custom colors

This commit is contained in:
Pasha Bibko
2025-11-21 23:04:51 +00:00
parent ff7f3e86ee
commit 2eb42da357
8 changed files with 29 additions and 5 deletions

View File

@@ -1,7 +1,11 @@
#version 450
layout(location = 0) out vec4 outColor;
layout(push_constant) uniform PC {
vec4 color;
} pc;
void main()
{
outColor = vec4(1.0, 0.0, 0.0, 1.0); // red
outColor = pc.color;
}