Current brush. Mutate freely. Defaults: erase, 3 m radius, 0.25 strength.
ReadonlycursorBrush outline that follows the terrain under the pointer.
ReadonlydomElement receiving pointer events, usually renderer.domElement.
When false, pointer events are ignored and the cursor is hidden.
ReadonlygrassField whose grassMap is painted. Must have a grass map.
Paint a Grass's
grassMapdirectly on the terrain: left-drag to apply the brush; a ring follows the pointer. Works with mesh and height-function terrain alike. Disable your camera controls while painting — they listen to the same pointer events.Example