mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
14 lines
256 B
GLSL
14 lines
256 B
GLSL
#version 450
|
|
|
|
layout(set = 0, binding = 0)
|
|
uniform sampler2DArray s_image;
|
|
|
|
layout(push_constant)
|
|
uniform u_info_t {
|
|
ivec2 offset;
|
|
} u_info;
|
|
|
|
void main() {
|
|
gl_FragDepth = texelFetch(s_image,
|
|
ivec3(gl_FragCoord.xy + u_info.offset, gl_Layer), 0).r;
|
|
} |