FoliageLevels beta
Interface of @v12-engine/client
export interface FoliageLevelsHow grass and bushes are drawn by their distance from the camera (FoliageLook.levels), a chunk of the map at a time: every one near, fewer and lighter further off, the fewest or none far away. Models (the layer's levels) are drawn by their lighter files from mid and from far (npm run lod), none past cull, and never thinned; where the look says none of the three, by the game's levels of detail of the model (GameView.world.detail)
Members
cull
cull?: number;Past this far, none at all: never when left out
fade
fade?: number;Over how many cells one level fades into the next: 4 when left out
far
far?: number;From this far, the fewest (farKeeps): the old far.to
farKeeps
farKeeps?: number;The part drawn from far, 0 to 1: 0.25 when left out. The old far.keep
mid
mid?: number;From this far, in cells, fewer are drawn (midKeeps), each lighter: the old far.from
midKeeps
midKeeps?: number;The part drawn from mid to far, 0 to 1, faded to over fade cells past mid, and on to farKeeps over as many past far. When left out, fewer and fewer from mid down to farKeeps at far, as the old far thinned