Skip to content

FoliageScatter beta ​

Interface of @v12-engine/client

ts
export interface FoliageScatter

Flowers and small plants mixed into a style of grass (FoliageLook.scatter): copies of a shape of their own, a few a cell, laid in the grass's chunks with it. Every style that scatters the same shape draws it in one mesh a chunk

Members ​

colors ​

ts
colors?: readonly FoliageColor[];

The colours of their tips, each copy one of them picked at random: white when left out. Their foot is the grass's. A fourth is how much of each is seen

density ​

ts
density: number;

How many to a cell: a part of one is a chance of one (0.1, one in ten cells). Fewer on low graphics

height ​

ts
height?: number;

How tall they stand, in world units: half the grass's height when left out

shape ​

ts
shape?: FoliageShape;

Their shape (FoliageShape): a short tuft of three wide blades when left out, a flower's head at its tips

sizes ​

ts
sizes?: readonly [number, number];

How much each differs in size, the smallest and the biggest of 1: [0.8, 1.2] when left out

src ​

ts
src?: string;

A model of the game's as their shape, as ModelDef.src gives it: shape: { kind: 'mesh', src } said shorter