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

WindBendMeshProps

Property Type Default value Description
castShadow? boolean true Casts into the sun’s shadow map, bent as it is drawn.
geometry BufferGeometry undefined What it draws, carrying a windBendAttribute of two floats a vertex: its share of the bend, from 0 at a root to 1 at a free top, and its sway’s phase in turns.
material Material undefined The lit material it draws with, such as a MeshLambertMaterial. It takes the bend over its own onBeforeCompile, so every mesh that draws with it bends, a geometry with no bend held still.
receiveShadow? boolean true Takes the sun’s shadow and the shadows cast on it.