summaryrefslogtreecommitdiffstats
path: root/src/video_core/host_shaders/convert_float_to_depth.frag
blob: d86c795f4c5d5c2d08c9b00e4f4179bda12dffae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2020 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#version 450

layout(binding = 0) uniform sampler2D color_texture;

void main() {
    ivec2 coord = ivec2(gl_FragCoord.xy);
    float color = texelFetch(color_texture, coord, 0).r;
    gl_FragDepth = color;
}