Skip to content

marble3 / DefaultLightsOptions

Interface: DefaultLightsOptions ​

Defined in: src/lights.ts:3

Properties ​

shadowCenter? ​

optional shadowCenter?: Vector3

Defined in: src/lights.ts:20

The point the shadow patch is centred on. Default: the origin. A world built around another point must pass it, or what lies outside the patch gets no shadow.


shadowExtent? ​

optional shadowExtent?: number

Defined in: src/lights.ts:9

Half the side of the square patch that receives shadows, in world units. The 2048² shadow map is spread over it, so a smaller patch gives sharper shadows. Default 100, for worlds to roam; a small fixed level, such as a 50 × 50 arena, wants about 30.


shadowNormalBias? ​

optional shadowNormalBias?: number

Defined in: src/lights.ts:15

How far a shadow is pushed off the surface receiving it, in world units, to hide shadow acne. Default 0.02, safe on uneven or voxel ground; pass 0 for a flat floor, so that shadows touch the foot of what casts them.