Show HN: Small World – The "Preact" of 3D Web Engines (TypeScript, WebGPU)
10 hours ago
- #Optimization
- #WebGL
- #Rendering
- The text describes a hybrid rendering system with optimized Cook-Torrance PBR shading that compiles dynamically for WebGL2 and WebGPU.
- It includes a zero-allocation Finite State Machine utility executing natively in a recursive update loop for behaviors.
- Post-processing filters feature specialized shader passes for effects like night vision, VHS tracking, glitches, and Noir film.
- Conformal reflections involve mirror geometries, procedural checkerboard maps, and real-time sphere inversion math.
- Octree interactions provide DOM-like pointer events supported by optimized O(log n) raycasting.