Skip to content

LiteWeatherView beta ​

Interface of @v12-engine/client

ts
export interface LiteWeatherView

Weather of a game's own in code on this renderer (GameView.lite.weather, the client's WeatherView): made the first time its kind falls, told how much of it there is as that changes (0 to 1, eased in and out), every frame where the camera looks, the quality's effects, and let go of when another kind falls or none

Members ​

dispose ​

ts
dispose(): void;

Takes away what it made

frame ​

ts
frame?(dt: number, focus: {
        x: number;
        z: number;
    }, ground: number, wind: WindNow): void;

Every frame: dt seconds on, what the camera looks at, the ground's height there, the wind as it blows

set ​

ts
set(amount: number): void;

How much of it there is now, 0 to 1

setDetail ​

ts
setDetail?(amount: number): void;

The quality's effects, 0 to 1 (client.fxAmount)