Strata - v1.4.10
    Preparing search index...

    Interface GPUInstancedMeshProps

    Props for the GPUInstancedMesh component.

    interface GPUInstancedMeshProps {
        castShadow?: boolean;
        count: number;
        enableWind?: boolean;
        frustumCulled?: boolean;
        geometry: BufferGeometry;
        instances: InstanceData[];
        lodDistance?: number;
        material: Material;
        receiveShadow?: boolean;
        windStrength?: number;
    }
    Index

    Properties

    castShadow?: boolean

    Enable shadow casting for all instances. Default: true.

    count: number

    Maximum number of instances to render.

    enableWind?: boolean

    Enable wind animation effect.

    Requires compatible GPU shader integration. Default: true.

    frustumCulled?: boolean

    Enable frustum culling for the entire system. Default: true.

    geometry: BufferGeometry

    The geometry to use for each instance.

    instances: InstanceData[]

    Array of instance transform data.

    lodDistance?: number

    Distance at which LOD transitions occur in units. Default: 100.

    Requires compatible GPU shader integration.

    material: Material

    The material to use for each instance.

    receiveShadow?: boolean

    Enable shadow receiving for all instances. Default: true.

    windStrength?: number

    Strength of wind animation (0-1). Default: 0.5.

    Requires compatible GPU shader integration.