mkxp/shader/hue.frag

13 lines
210 B
GLSL

uniform sampler2D texture;
uniform lowp mat3 rotationMat;
varying vec2 v_texCoord;
void main ()
{
vec4 color = texture2D (texture, v_texCoord.xy);
gl_FragColor = vec4(rotationMat * color.rgb, color.a);
}