we
    Preparing search index...

    Interface IV_SpotLight

    用户自定义功能接口的update interface

    interface IV_SpotLight {
        angle: number;
        angleOut?: number;
        color?: weVec3;
        decay?: number;
        direction: weVec3;
        distance?: number;
        intensity?: number;
        isLookAt?: boolean;
        name?: string;
        position: weVec3;
        shadow?: boolean;
        size?: number;
        update?: (scope: any) => any;
        updateAtEnd?: (scope: any) => any;
        visible?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    angle: number

    弧度制

    angleOut?: number

    弧度制

    color?: weVec3

    颜色 color

    decay?: number

    decay 衰减因子,待定

    direction: weVec3

    1、isLookat=false时, direction 是方向, 2、isLookat=true时, direction是lookat的位置,方向计算是direction-position

    distance?: number

    光的可视距离 0.0=无限远

    intensity?: number

    光的强度 ,wgsl,不受距离与立体角影响 默认=1.0

    isLookAt?: boolean

    direction 是方向还是lookAt 如果是lookAt,direction 是lookAt的位置,否则是方向 默认是lookat ,=true

    name?: string
    position: weVec3

    位置 position

    shadow?: boolean

    阴影 shadow

    size?: number

    大小 size

    update?: (scope: any) => any

    自定义更新functon()

    updateAtEnd?: (scope: any) => any

    在最后执行调用

    visible?: boolean

    可见性,目前看没有意义,保留

    visibility,