How to prevent fully occluded objects from being rendered to reduce triangle count in Three.js?

The technique is called “occlusion culling” and here’s a demo that demonstrates this: