Created
May 1, 2025 02:21
-
-
Save phobon/a2a350f2d4283d867b520850220b312d 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
vec3 palette(float t) { | |
vec3 a = vec3(0.5, 0.5, 0.5); | |
vec3 b = vec3(0.5, 0.5, 0.5); | |
vec3 c = vec3(1.0, 1.0, 0.5); | |
vec3 d = vec3(0.80, 0.90, 0.30); | |
return a + b * cos(6.28318 * (c * t + d)); | |
} | |
vec3 col = palette(uv.y + 0.5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment