TIC-80-guile/data/shaders/color.frag

11 lines
188 B
GLSL
Raw Normal View History

2018-02-19 21:03:35 +01:00
varying vec4 color;
varying vec2 texCoord;
uniform sampler2D tex;
uniform vec4 myColor;
void main(void)
{
vec4 c = myColor * color;
gl_FragColor = texture2D(tex, texCoord) * c;
}