This commit is contained in:
duck
2025-06-29 18:47:33 +05:00
parent 5987f9a44f
commit b2be9e3708
4 changed files with 154 additions and 70 deletions

View File

@@ -1,14 +1,10 @@
#version 450
layout(location = 0) in float vertexIndex;
layout(location = 1) in float depth;
layout(location = 0) in vec2 inUV;
layout(location = 0) out vec4 fragColor;
layout(set = 2, binding = 0) uniform sampler2D texture_sampler;
void main() {
fragColor = vec4(
depth,
cos(vertexIndex * 0.5) * 0.25 + 0.75,
sin(vertexIndex * 0.5) * 0.25 + 0.75,
1.0
);
fragColor = texture(texture_sampler, inUV);
}