aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/new.frag
blob: fa8a260222eef42a38af7e078bf32510d67ffe52 (plain)
1
2
3
4
5
6
7
8
9
uniform sampler2D sampler;

varying vec2 texCoord;
varying vec4 color;

void main(){
    vec4 pixelColor = texture2D(sampler, vec2(texCoord.x, texCoord.y));
    gl_FragColor = pixelColor * color;
}