In April 2019, Harry Alisavakis made a great write-up about the “magical marbles” effect he shared prior on Twitter. The purpose of this tutorial is to offer a more concrete look at how you could implement code for this in Three.js to run on the web. This tutorial assumes intermediate familiarity with three.js and GLSL.
Table of contents
OverviewStep 1: A Blank MarbleStep 2: Fake VolumeStep 3: Wavy MotionExtra CreditConclusionSort: