mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-20 04:09:39 +02:00
22 lines
569 B
Text
22 lines
569 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// surfaceGeometry_copyDepth.frag
|
|
//
|
|
// Created by Olivier Prat on 08/08/17.
|
|
// Copyright 2017 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
layout(binding=0) uniform sampler2D depthMap;
|
|
|
|
layout(location=0) out vec4 outFragColor;
|
|
|
|
void main(void) {
|
|
float Zdb = texelFetch(depthMap, ivec2(gl_FragCoord.xy), 0).x;
|
|
outFragColor = vec4(Zdb, 0.0, 0.0, 1.0);
|
|
}
|
|
|