<@include gpu/Config.slh@> <$VERSION_HEADER$> // Generated on <$_SCRIBE_DATE$> // // skin_model_shadow_fade.frag // fragment shader // // Created by Olivier Prat on 06/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 // <@include Fade.slh@> <$declareFadeFragment()$> in vec4 _positionWS; layout(location = 0) out vec4 _fragColor; void main(void) { FadeObjectParams fadeParams; <$fetchFadeObjectParams(fadeParams)$> applyFadeClip(fadeParams, _positionWS.xyz); // pass-through to set z-buffer _fragColor = vec4(1.0, 1.0, 1.0, 0.0); }