iggi.dev 이끼
60 FPS

Procedural Moss Generation

iggi.dev provides a lightweight toolkit for generating realistic moss and vegetation in real-time 3D environments. Control density, spread patterns, color variation, and surface adhesion with simple parameter tweaks.

Quick Start

JavaScript scene.js
import { MossGenerator } from 'iggi';

const moss = new MossGenerator({
  density: 0.72,
  spread: 'organic',
  colorVariance: 0.3,
  surfaceAdhesion: 0.85
});

moss.attach(scene.terrain);
moss.grow();

Parameters

0.72
0.30
0.85
0.50

Code Examples

JavaScript example.js

API Reference

class MossGenerator

The core class for procedural moss generation. Manages growth simulation, rendering, and parameter updates.

.attach(surface)

Binds the generator to a 3D surface mesh. Analyzes normals and curvature for optimal moss placement.

.grow(options?)

Initiates moss growth simulation. Returns a Promise that resolves when the initial growth cycle completes.

.setDensity(value)

Updates moss density in real-time. Value between 0.0 and 1.0. Triggers a smooth transition.

.export(format)

Exports the generated moss as geometry data. Supports 'gltf', 'obj', and 'fbx' formats.

Gallery

Scene Statistics

Polygons 124,832
Textures 2048x2048
Growth Nodes 3,847
Coverage 72%
Draw Calls 48
Frame Time 16.4ms
Top-Down View