2023-01-22 21:21:31 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout (location = 0) in vec2 TexCoord;
|
|
|
|
|
|
|
|
layout (location = 0) out vec4 FragColor;
|
|
|
|
|
2024-06-06 05:47:06 +00:00
|
|
|
layout(set = 2, binding = 0) uniform sampler3D Sampler;
|
2023-01-22 21:21:31 +00:00
|
|
|
|
2024-06-06 05:47:06 +00:00
|
|
|
layout (set = 3, binding = 0) uniform UniformBlock
|
2023-01-22 21:21:31 +00:00
|
|
|
{
|
|
|
|
float depth;
|
|
|
|
};
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
FragColor = texture(Sampler, vec3(TexCoord, depth));
|
|
|
|
}
|