Type alias ShadowOptions

ShadowOptions: {
    distance: number;
    mapSize: number;
    polygonOffset: number;
    zoom: number;
}

Options to configure how shadows are calculated & rendered

Type declaration

  • distance: number

    Far clipping pane of shadow map camera, default 1000

  • mapSize: number

    Size of the shadow map texture. Default: 512

  • polygonOffset: number

    Offset used to reduce shadow acne especially when self shadowing

  • zoom: number

    Zoom level of the shadow map camera, larger will cover more of the scene, but results in more blocky shadows. Default 120

Generated using TypeDoc