MapCloudLayer beta
Interface of @v12-engine/client
export interface MapCloudLayerClouds 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
color?: Rgb;Its colour: white when left out
cover
cover?: number;How much of it is cloud, 0 to 1: 0.5 when left out
drift
drift?: {
x: number;
z: number;
};Which way it drifts, in cells a second: with the wind (MapWind) when left out
height
height?: number;How high it floats, in cells over the ground's level: 20 when left out
opacity
opacity?: number;How much it shows, 0 to 1: 0.6 when left out
patches
patches?: MapCloudPatch[];Where it is: in these places only (with soft edges), all over the map when left out
scale
scale?: number;How big a cloud is, in cells: 24 when left out
shadows
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
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
thickness?: number;How tall the clouds are, in cells, where volumetric: 5 when left out
volumetric
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