RendererOptions beta
Interface of @v12-engine/render
ts
export interface RendererOptionsHow a renderer is made (createRenderer): what is left out taken as said beside each
Members
cascades
ts
cascades?: number;How many cascades the sun's shadows are in, 2 or 3 (3)
clearColour
ts
clearColour?: readonly [number, number, number];What the view's target is cleared to at first: the colour behind everything (Renderer.clearColour)
cull
ts
cull?: boolean;Whether copies out of a pass's view are left out of its draw (true). Off for measuring what it saves
map
ts
map?: {
width: number;
depth: number;
};The map's size in cells: the size of the fog of war's and the cloud mask's textures
shadowCache
ts
shadowCache?: boolean;Whether a cascade nothing moved in keeps last frame's depth (true)
shadowMapSize
ts
shadowMapSize?: number;A cascade's side in texels (2048)