Live data from Hacker News

Magic Gradient Color Effect

shadertoy.com

1–2 of 2 posts

Re: Magic Gradient Color Effect

#2
I don't understand why this specific shader got to the front page when there are so many nicer things on shadertoy, but shadertoy is wonderful.

If you replace the if with a multiplication, you'll get rid of the gray edges and also get a speedup because GPUs hate branches:

    baseColor.rgb *= vec3(sin(iTime*2.5),cos(iTime*2.5),sin(cos(iTime*2.5)));