Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

GrassShape

GrassShape = (surface) => GrassShader

What Landscape’s grass takes: a function that shapes the blades over a heightfield’s surface, which only a page calls, as the grass first draws and again for each new surface, so a room never builds what only a page draws. Define it once, outside the component.

Parameter Type
surface HeightfieldSurface

GrassShader