MistArea beta
Interface of @v12-engine/render
ts
export interface MistAreaAn area of mist standing over a circle or a box of the map, thick at its base and thinning to its top
Members
base
ts
base?: number;The height it is thickest at (0)
colour
ts
colour: Vec3;Its colour
density
ts
density: number;How much of what is behind a cell of it is hidden at its base, 0 to 1
halfDepth
ts
halfDepth?: number;A box's half depth, where there is no radius (1)
halfWidth
ts
halfWidth?: number;A box's half width, where there is no radius (1)
offset
ts
offset?: readonly [number, number];How far its wisps have drifted (x, z): moved by who owns it, each frame
radius
ts
radius?: number;A circle's radius; or a box's half width and half depth
softness
ts
softness?: number;Over how many cells its sides and its top fade (1)
top
ts
top?: number;Three cells over its base where left out
wisps
ts
wisps?: boolean;Whether it is in wisps (an area that drifts, or the wind blowing)
x
ts
x: number;Its middle on the map
z
ts
z: number;Its middle on the map, along the other way