无尽世界
Infinite World,Bruno Simon,2022 年

正在布展…
它是怎么做的
- 第 1 步以玩家为中心的四叉树/分块 LOD,地形在 Web Worker 中用噪声生成
- 第 2 步地形块离开视距即回收复用
- 第 3 步天空与太阳方向驱动地形着色,实现昼夜循环
- 第 4 步草地用大量实例化叶片 + 顶点着色器风动
复刻配方
一段技术配方,可以直接交给 AI 编程助手,也可以自己照着写。想指定技术栈、位置和性能预算,就把它加入实现方案。
Split the world into square chunks keyed by integer coordinates and keep only chunks within a radius of the player, subdividing near chunks for more detail. Generate each chunk's heights from layered simplex noise inside a Web Worker and transfer the Float32Array back to build the geometry. Color terrain in the shader by height and slope, tinted by a sun direction uniform that rotates over time for a day/night cycle. Add instanced grass blades whose vertices sway with a time-based noise offset.


