summaryrefslogtreecommitdiffstats
path: root/libs/hwui/shaders/drawTexture.frag
blob: 8390d8e0e769f2ad52c6e528bb070d31a9af33df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
SHADER_SOURCE(gDrawTextureFragmentShader,

precision mediump float;

varying vec2 outTexCoords;

uniform vec4 color;
uniform sampler2D sampler;

void main(void) {
    gl_FragColor = texture2D(sampler, outTexCoords) * color;
}

);