OptionalbuildMilliseconds per frame spent building chunks, nearest first.
OptionalcameraCamera the levels of detail follow. Defaults to the R3F default camera.
OptionalcanopyGrid size (metres) of the canopy surface that stands in for far plants.
OptionalcastWhether plants within shadowDistance cast shadows.
OptionalchunkEdge length (metres) of the chunks plants are built in around the camera.
Optionalcolor0..1 per-plant brightness variation.
OptionaldebugTints corn by level of detail (red, yellow, green; canopy red → blue as it rises).
OptionaldryDry leaf, husk and stubble colour.
OptionalfieldsThe fields to plant, e.g. from threejs-city's farm planner.
OptionalflattenTexel size (metres) of the map remembering where corn was flattened.
OptionalgrowthGrowth stage: 0 seedling, ~0.65 full height, 0.8 mature (tassels and ears), 1 dry and brown.
OptionalharvestedHarvested: only stubble is left.
OptionalheightMature plant height in metres, tassel included (1.5–3 m).
Optionalheight0..1 random height spread per plant.
OptionalinteractionGlobal multiplier on how strongly interactors push and flatten corn. 0 = not at all.
OptionalinteractorsUp to 16 objects that push corn aside and flatten what they drive over (tractor wheels, harvesters…).
OptionalleafMature leaf colour (any CSS colour).
OptionallodsExactly four levels of detail, near → far. Plants end at the last distance; the canopy covers the rest.
Optionalpatchiness0..1 field-scale brightness and dryness variation.
OptionalplantDistance between plants along a row, in metres.
OptionalreceiveWhether plants and canopy receive shadows.
OptionalrefReceives the underlying Corn instance (for flatten, flattened, stats, …).
OptionalseedLayout seed: the same seed always plants the same fields.
OptionalshadowRadius (metres) around the camera in which plants cast shadows.
OptionalsoilSoil colour between young rows and under the canopy.
OptionalstiffnessHigher = less wind and interaction bending.
OptionalstubbleStubble height in metres after harvest.
OptionalsunLight used for back-lit translucency. null = first DirectionalLight found in the scene.
OptionaltasselTassel colour.
OptionalterrainMesh/group (or a ref to one) or a (x, z) => y height function, as for <Grass>.
Optionaltranslucency0..1 how much sunlight shines through back-lit leaves.
OptionalwindWind settings to change; unspecified fields keep their current value.
OptionalyoungYoung leaf colour.
Props of the
<Corn>component: every CornInput setting plus the ones below.