mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 21:54:23 +02:00
24 lines
545 B
Text
24 lines
545 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// drawOpaqueStencil.frag
|
|
// fragment shader
|
|
//
|
|
// Created by Sam Gateau on 9/29/15.
|
|
// Copyright 2015 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
|
|
//
|
|
|
|
in vec2 varTexCoord0;
|
|
|
|
uniform sampler2D depthTexture;
|
|
|
|
void main(void) {
|
|
float depth = texture(depthTexture, varTexCoord0.xy).r;
|
|
if (depth >= 1.0) {
|
|
discard;
|
|
}
|
|
}
|