2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-30 05:48:44 +01:00
|
|
|
|
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(binding = 0) uniform sampler2D depth_texture;
|
|
|
|
layout(location = 0) out float output_color;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
ivec2 coord = ivec2(gl_FragCoord.xy);
|
|
|
|
output_color = texelFetch(depth_texture, coord, 0).r;
|
|
|
|
}
|