Skip to content

SceneryDef beta ​

Interface of @v12-engine/client

ts
export interface SceneryDef

What scenery of a model gives besides its model (GameView.ground.scenery)

Members ​

animation ​

ts
animation?: string;

A clip of its model its doodads play over and over, by its name: a windmill's sails. A doodad's own over it (MapDoodad.animation); code plays others (client.doodads.play)

batch ​

ts
batch?: boolean;

Its doodads merged with the scenery near them, to be drawn in one go (GameView.world.sceneryBatching): yes when left out, as far as it can be, but for a model of many doodads (SceneryBatchLook.instanced), which is copies of its mesh. Yes merges it however many: grass of a few triangles, a draw a chunk as copies. No keeps every one a copy of its mesh

detail ​

ts
detail?: DetailLevel[];

How its doodads are drawn by their distance (DetailLevel): its full self, lighter ones, nothing past a distance. A doodad's own over it (MapDoodad.detail); the game's and the map's by model over it (GameView.world.detail)

glow ​

ts
glow?: ModelDef['glow'];

How what its model is made to shine glows past its edges (ModelDef.glow): a lamppost's glass only at night

lights ​

ts
lights?: ModelLightDef[];

The lights each doodad of it gives: a lamppost's lamp, a brazier's fire