FoliMesh

Ground cover for three.js

Fern, Grass Tuft and Reed are built for the browser: each ships as GLB, so one GLTFLoader call from three/addons puts them in the scene, and the LOD0–LOD3 meshes drop straight into THREE.LOD via lod.addLevel(mesh, distance), which swaps levels by camera distance every frame. Add DRACOLoader or KTX2Loader only when a file actually uses those extensions.

For meadows and forest floors, InstancedMesh draws thousands of copies in one draw call and BatchedMesh mixes variations; since THREE.LOD is not applied per instance, group instances by LOD per chunk yourself. glTF alphaMode MASK maps to material.alphaTest and double-sided leaves get side: THREE.DoubleSide. The invisible collision mesh feeds Rapier or cannon-es, and everything runs on both WebGLRenderer and WebGPURenderer.

Models
12
Levels of detail
LOD0 – LOD3
Formats
GLB · FBX · OBJ

Using it in three.js

In three.js, load GLB with GLTFLoader from three/addons; add DRACOLoader or KTX2Loader only if a file uses those extensions.

  • Distance LOD: THREE.LOD with lod.addLevel(mesh, distance) for LOD0–LOD3; it switches levels by camera distance every frame.
  • Forests: InstancedMesh draws thousands of copies in one draw call, and BatchedMesh mixes several tree variations. THREE.LOD does not apply per instance, so group instances by LOD per chunk yourself.
  • Leaves: glTF alphaMode MASK becomes material.alphaTest, and double-sided materials get side: THREE.DoubleSide automatically.
  • Collision mesh: keep it invisible and pass it to a physics library such as Rapier or cannon-es.

Works with both WebGLRenderer and WebGPURenderer.

Other categories

Same in other styles

Same for other engines