SceneryBatchLook beta
Interface of @v12-engine/client
export interface SceneryBatchLookHow scenery is merged by chunks of the map (GameView.world.sceneryBatching, DoodadView.batching): the doodads of a chunk that use one material are one mesh, drawn in one go, whatever models they are of
Members
chunk
chunk?: number;How big a chunk is, in cells on a side: 32 when left out
copyChunk
copyChunk?: number;How big a chunk of the map the copies of a model (what is not merged: a model with many doodads, what glows, what just changed) are drawn by, in cells on a side: each chunk's copies are a mesh of their own, culled by the box around them, in the view and in each part of the shadows: small, as a forest of one tree is thousands of them, each thousands of triangles. 0 (when left out) draws all of a model's copies as one mesh, its copies culled one by one in the view and in each part of the shadows (CopyCulling): the same triangles drawn as by chunks, in a draw a model where chunks of 16 were a draw a chunk (the examples' Oathbound zoomed out: 217 meshes of copies, 12 by model)
enabled
enabled?: boolean;Scenery merged by chunks: yes when left out. No draws every model as copies of its mesh, as it always was
fade
fade?: number;Seconds scenery fades from the level of detail it was drawn at to the one it is, dithered: a chunk merged as a whole, a copy of a model alone, and whatever goes to a level of nothing or comes back from one: the one drawn on fewer pixels of the screen, the other on more, never both on one. Its shadow changes at the fade's middle. 0 (at once) when left out. The materials of the scenery take a pass for it (LevelFadePlugin) once it is on, no input and no varying added
instanced
instanced?: number;A model with this many doodads on the map or more is drawn as copies of its mesh, one draw for all of them, not merged: a forest of one tree. 16 when left out. A model the game says is merged (SceneryDef.batch true) is, however many
settle
settle?: number;Seconds a doodad that changed (moved, turned, tinted, a gate opened) is drawn on its own before it is merged again: 2
staticChunk
staticChunk?: number;How big a chunk of the map the copies of trees, mines and other statics (EntityRenderer.staticChunk) are drawn by, in cells on a side: what is out of view is not drawn, nor drawn into the shadows. 0 draws all of a kind in one batch. 32 when left out