Last active
August 29, 2015 14:25
-
-
Save pomle/8e1d64073352b754e777 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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