Skip to content

MapCloudLayer beta ​

Interface of @v12-engine/client

ts
export interface MapCloudLayer

Clouds that are somewhere: a layer at a height over the map, drifting, over all of it or in patches, casting shadows on what is under it. Seen from the camera as it looks down, faded out as the camera comes near it

Members ​

color ​

ts
color?: Rgb;

Its colour: white when left out

cover ​

ts
cover?: number;

How much of it is cloud, 0 to 1: 0.5 when left out

drift ​

ts
drift?: {
        x: number;
        z: number;
    };

Which way it drifts, in cells a second: with the wind (MapWind) when left out

height ​

ts
height?: number;

How high it floats, in cells over the ground's level: 20 when left out

opacity ​

ts
opacity?: number;

How much it shows, 0 to 1: 0.6 when left out

patches ​

ts
patches?: MapCloudPatch[];

Where it is: in these places only (with soft edges), all over the map when left out

scale ​

ts
scale?: number;

How big a cloud is, in cells: 24 when left out

shadows ​

ts
shadows?: number;

How dark its shadows are on what is under it, 0 to 1: none when left out. At medium quality and up

swing ​

ts
swing?: {
        amount: number;
        seconds: number;
    };

A slow back and forth on top of the drift: how far, in cells, and how long one takes, in seconds

thickness ​

ts
thickness?: number;

How tall the clouds are, in cells, where volumetric: 5 when left out

volumetric ​

ts
volumetric?: boolean;

Drawn as a volume the camera looks into, thickness cells tall from height up, lit by the sun, with sides and tops: at high quality (effects high) on WebGL 2 and WebGPU; the flat layer, with the same clouds, otherwise