Grass Types
Grassworks supports two representations: Blade and Billboard. Both can be switched at runtime with setGrassType().
Blade
Procedural individual grass geometry. It gives you direct control over blade shape, stiffness, initial bend and surface detail.
- Named presets available.
- No atlas required.
- Best when geometry and blade structure are the visual priority.
Billboard
Textured rectangle representation using a Grass Atlas. It can produce strong visual variation when the atlas is thoughtfully authored.
- Grass Atlas required.
- No named preset library.
- Best when texture artwork and large-area visual variation are the priority.
Named presets are Blade-only starting points. Billboard has a default configuration and remains fully configurable through grass parameters.
js
await grassworks.setGrassType("billboard");
await grassworks.setGrassType("blade");