Here is a complete, single-file HTML solution containing a procedural Voxel Pagoda generator using Three.js. It features: 1. **InstancedMesh Rendering**: Efficiently renders thousands of voxels. 2. **Procedural Architecture**: Algorithms to generate walls, balconies, and curved "flying eave" roofs typical of Chinese architecture. 3. **Dynamic Lighting**: Orbiting "firefly" lights and warm internal glow. 4. **Interactive Controls**: Mouse drag to rotate/zoom. Save this code as `index.html` and open it in a modern browser. ```html 3D Voxel Pagoda
Voxel Pagoda Generator
Left Click: Rotate
Right Click: Pan
Scroll: Zoom
Generating Voxel Geometry...
```