Details
Some balls bonking each other. Yes. A practice on nice-looking shading.
The idea was also to add inter-sphere reflections, but it didn't look too convincing.
All in a single draw of instanced highly tessellated icosahedron spheres.
Ambient Occlusion is from sphere ambient occlusion, soft shadows from sphere soft shadow and functions from the ShaderToy toolbox, all by Íñigo Quílez.
Physics by Oimo.js, running in CPU and updating the attributes buffers.
Built with three.js.
Code available on GitHub.
Close