css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

Voronoi cellular noise with multiple octaves and some naive refraction based on the voronoi secondary distance point interpolated using the primary distance field.

Thank you @bookofshaders and @iquilezles.

http://www.iquilezles.org/ https://thebookofshaders.com/12/

I would appreciate it, if you end up using this code in any sort of production situation, that you cite me in your code and let me know what you've used it for. I love seeing that people actually get use out of the things that I write, and I don't think it's too much to ask that I get a citation for my troubles :)

This Pen is a fork, but the parent Pen is now private.


  1. Nice example! and thanks for those links, are very useful for a shader noob like me :)

  2. No worries mate, those links are absolutely amazing. Also Google pixel spirit deck if you're interested in writing shaders. GLSL is like black magic, but it's one of the most satisfying things to program. Inigo Quilez and Patricio Vivo are my heroes.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.