Interface ContactShadowsOptions

ContactShadows component options

ContactShadowsOptions

2024.1.29

yisky

interface ContactShadowsOptions {
    blur?: number;
    color?: ColorRepresentation;
    depthWrite?: boolean;
    far?: number;
    frames?: number;
    height?: number;
    lookAt?: Vector3;
    near?: number;
    onAfterRender?: ((renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry<NormalBufferAttributes>, material: Material, group: Group<Object3DEventMap>) => void);
    onBeforeRender?: ((renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry<NormalBufferAttributes>, material: Material, group: Group<Object3DEventMap>) => void);
    opacity?: number;
    position?: Vector3;
    quaternion?: Quaternion;
    queryMask?: QueryMask;
    renderOrder?: RenderOrder;
    resolution?: number;
    rotation?: Euler;
    scale?: Vector3;
    smooth?: boolean;
    userData?: {
        [key: string]: any;
    };
    width?: number;
}

Hierarchy

  • RendererOptions
    • ContactShadowsOptions

Properties

blur?: number

Shadow render target blur counts.

ContactShadowsOptions

color?: ColorRepresentation

Shadow plane color.

ContactShadowsOptions

depthWrite?: boolean

Whether enable depth write

ContactShadowsOptions

far?: number

Shadow camera frustum far plane

ContactShadowsOptions

frames?: number

Shadow render count.

ContactShadowsOptions

height?: number

Shadow plane height.

ContactShadowsOptions

lookAt?: Vector3

Rotates the object to face a point in world space.

LightformerOptions

near?: number

Shadow camera frustum near plane.

ContactShadowsOptions

onAfterRender?: ((renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry<NormalBufferAttributes>, material: Material, group: Group<Object3DEventMap>) => void)

After render callback

RendererOptions

onBeforeRender?: ((renderer: WebGLRenderer, scene: Scene, camera: Camera, geometry: BufferGeometry<NormalBufferAttributes>, material: Material, group: Group<Object3DEventMap>) => void)

Before render callback

RendererOptions

opacity?: number

Shadow plane opacity.

ContactShadowsOptions

position?: Vector3

Local Position

LightformerOptions

quaternion?: Quaternion

Local quaternion

RendererOptions

queryMask?: QueryMask

Query mask

RendererOptions

renderOrder?: RenderOrder

Render order

RendererOptions

resolution?: number

Shadow render target resolution.

ContactShadowsOptions

rotation?: Euler

Local rotation

LightformerOptions

scale?: Vector3

Local Scale

LightformerOptions

smooth?: boolean

Whether to smooth the shadow render target.

ContactShadowsOptions

userData?: {
    [key: string]: any;
}

The component user data, default is {}

ComponentOptions

width?: number

Shadow plane width.

ContactShadowsOptions