Properties
Readable public state on the Grassworks instance. Explicit getter methods such as getGrassParams() and getStats() are documented under Methods instead of being treated as properties.
camera
THREE.CameraCamera used for culling, LOD and interaction follow.
scene
THREE.SceneScene containing generated grass tiles.
renderer
WebGPURendererWebGPU renderer used by Grassworks.
terrain
THREE.Object3DPlane-based terrain supplied to Grassworks.
Only plane-based terrain is supported by the documented terrain model.
tileSize
numberWorld-space size of each grass tile.
maxDistance
numberMaximum distance at which grass remains visible.
grassType
"blade" | "billboard"Current grass representation.
grassAtlas
string | nullTexture source used by Billboard grass.
Billboard atlas composition is covered in the Grass Atlas Guide.
grassMap
string | THREE.Texture | nullCurrent grass map source/state.
grassParams
objectCurrent grass parameter values.
For the parameter meanings, see Grass Parameter Reference.
preset
stringCurrent named Blade preset key.
influenceWorldSize
numberWorld-space size of the interaction map.
influenceResolution
integerInteraction-map resolution.
influenceRecoverySpeed
numberInteraction recovery speed, 0–1.
influenceDebugPlaneVisible
booleanWhether the influence debug plane is visible.
interactionEnabled
booleanWhether influence interaction is enabled.
painterEnabled
booleanWhether the Terrain Painter mode is enabled.
enabled
booleanWhether per-frame Grassworks updating is enabled.
visible
booleanWhether generated grass meshes are visible.
castShadow
booleanWhether generated grass meshes cast shadows.
receiveShadow
booleanWhether generated grass meshes receive shadows.
debugBoxes
booleanWhether tile debug boxes are enabled.