Books might not be the best resource for Shadertoy-type stuff. Almost all of Shadertoy 3d shaders use a technique called ray-marching with signed distance functions. If you Google it, you should find good resources. Also, someone on Shadertoy made a very good tutorial using Shadertoy, which I think is kindof amazing... https://www.shadertoy.com/view/4dSfRc
There are other tutorial shaders on Shadertoy and I always try to make mine readable and heavily commented...
https://www.shadertoy.com/user/otaviogood
chii|8 years ago