Interface SoftShadowOptions

Soft shadow options

SoftShadowOptions

2024.1.31

yisky

interface SoftShadowOptions {
    focus?: number;
    samples?: number;
    size?: number;
}

Properties

Properties

focus?: number

Depth focus, use it to shift the focal point (where the shadow is the sharpest), default: 0 (the beginning)

SoftShadowOptions

samples?: number

Number of samples (more samples less noise but more expensive), default: 10

SoftShadowOptions

size?: number

Size of the light source (the larger the softer the light), default: 25

SoftShadowOptions