Distance Field Workshop
These are supplementary resources for a workshop I gave at GenArtHackParty #004 in August 2017.
Each file example-000.glsl, example-001.glsl, etc. builds on the previous as we start to build a very basic ray-marcher in GLSL.
Each can be pasted directly into The Book of Shaders Editor
Unfortunately this repo is not stand-alone, as the education part involves me waving my hands in front of a whiteboard.
Further resources we looked at
IQ snail: https://www.shadertoy.com/view/ld3Gz2
Dist function reference: http://iquilezles.org/www/articles/distfunctions/distfunctions.htm
Smooth min reference: http://iquilezles.org/www/articles/smin/smin.htm
Shader tutorial in a shader: https://www.shadertoy.com/view/4dSfRc
Final shader: http://thebookofshaders.com/edit.php?log=170803220647