mirror of
https://github.com/overte-org/overte.git
synced 2025-05-08 23:38:55 +02:00
27 lines
628 B
Text
27 lines
628 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
//
|
|
// overlay3D_translucent_unlit.frag
|
|
// fragment shader
|
|
//
|
|
// Created by Zach Pomerantz on 2/2/2016.
|
|
// Copyright 2016 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
|
|
//
|
|
|
|
uniform sampler2D originalTexture;
|
|
|
|
in vec2 _texCoord0;
|
|
in vec3 _color;
|
|
in float _alpha;
|
|
|
|
out vec4 _fragColor;
|
|
|
|
void main(void) {
|
|
vec4 albedo = texture(originalTexture, _texCoord0);
|
|
|
|
_fragColor = vec4(albedo.rgb * _color, albedo.a * _alpha);
|
|
}
|