Skip to content

Instantly share code, notes, and snippets.

@marioecg
Created May 24, 2020 19:43
Show Gist options
  • Save marioecg/1e1e2684adadf7dc39bb23489a087e08 to your computer and use it in GitHub Desktop.
Save marioecg/1e1e2684adadf7dc39bb23489a087e08 to your computer and use it in GitHub Desktop.
vec3 palette(in float t, in vec3 a, in vec3 b, in vec3 c, in vec3 d) {
return a + b * cos(6.28318 * (c * t + d));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment