Skip to content

Instantly share code, notes, and snippets.

@pomle
Last active August 29, 2015 14:25
Show Gist options
  • Save pomle/8e1d64073352b754e777 to your computer and use it in GitHub Desktop.
Save pomle/8e1d64073352b754e777 to your computer and use it in GitHub Desktop.
uniform vec3 color1;
uniform vec3 color1;
uniform sampler2D texture;
varying vec2 vUv;
void main() {
vec4 tColor = texture2D( texture, vUv );
if (color == blue1) {
tColor = color1;
}
if (color == blue2) {
tColor = color2;
}
gl_FragColor = tColor;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment