I made another shader in Shadertoy. Two triangles are rendered using a WebGL fragment shader showing an abandoned base. The scene is rendered by ray-marching a distance field and features dynamic lights, soft shadows, reflections and ambient occlusion.
You can find (the full source of) the fragment shader on Shadertoy: https://www.shadertoy.com/view/XsSSRW.
I have also rendered a movie of this shader. You can find this movie on YouTube.
If you like this post, you may also like one of my other posts:
- Tokyo – breakdown of a webgl fragment shader
- Raymarching distance fields
- Rendering a planet with two triangles
- Escher and the Droste effect
- More spheres