Skip to content

Instantly share code, notes, and snippets.

@romainavalle
Last active June 10, 2022 09:54
Show Gist options
  • Save romainavalle/a0439d9ce5144baff5c42b61e444b249 to your computer and use it in GitHub Desktop.
Save romainavalle/a0439d9ce5144baff5c42b61e444b249 to your computer and use it in GitHub Desktop.
duotone glsl
float g = greyscale(texture2D(tMap, uv).r;
vec3 finalColor = mix(colorA, colorB, g);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment