2 ms·
Hey :), full code isn't up yet but I can share the color pattern: http://thebookofshaders.com/edit.php?log=200806194314 http://thebookofshaders.com/edit.php?lo
by haxiomic 6y ago
Hey :), full code isn't up yet but I can share the color pattern:
http://thebookofshaders.com/edit.php?log=200806194314 http://thebookofshaders.com/edit.php?log=200806194314
The technique is called "sine puke", and it works by starting with a gradient (in this case a rainbow) and warping the domain when drawing that gradient by sine functions repeatedly (check the for loop)
In the fluid demo I blend new frames with the previous so you get this slower, softer pattern