mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 01:16:00 +02:00
24 lines
563 B
Text
24 lines
563 B
Text
<@include gpu/Config.slh@>
|
|
<$VERSION_HEADER$>
|
|
// Generated on <$_SCRIBE_DATE$>
|
|
// standardDrawTexture.frag
|
|
// fragment shader
|
|
//
|
|
// Created by Sam Gateau on 6/10/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
|
|
//
|
|
|
|
// the texture
|
|
uniform sampler2D colorMap;
|
|
|
|
varying vec2 varTexcoord;
|
|
varying vec4 varColor;
|
|
|
|
|
|
void main(void) {
|
|
vec4 color = texture2D(colorMap, varTexcoord);
|
|
gl_FragColor = color * varColor;
|
|
}
|