overte-HifiExperiments/libraries/render-utils/src/standardDrawTexture.slf
2015-08-04 14:05:05 -07:00

27 lines
616 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;
in vec3 varPosition;
in vec3 varNormal;
in vec2 varTexCoord0;
in vec4 varColor;
out vec4 outFragColor;
void main(void) {
vec4 color = texture(colorMap, varTexCoord0);
outFragColor = color * varColor;
}