Hilo3d API - v2.0.0
    Preparing search index...

    Class LightManager

    光管理类

    Index
    ambientInfo: Float32Array = ...
    ambientLights: AmbientLight[] = []
    areaInfo: AreaLightInfo | null = null
    areaLights: AreaLight[] = []
    className: string = 'LightManager'
    directionalInfo: DirectionalLightInfo | null = null
    directionalLights: DirectionalLight[] = []
    isLightManager: boolean = true
    lightInfo: LightInfo = ...
    pointInfo: PointLightInfo | null = null
    pointLights: PointLight[] = []
    pointShadowMatrices: Float32Array = ...
    shadowAtlas: Texture<unknown> | null = null
    shadowAtlasRects: Float32Array = ...
    shadowAtlasSize: Float32Array = ...
    shadowEnabled: boolean = true

    是否开启阴影

    spotInfo: SpotLightInfo | null = null
    spotLights: SpotLight[] = []
    updateCustomInfo: ((manager: LightManager, camera: Camera) => void) | null = null

    更新自定义灯光信息

    • Parameters

      • option: Record<string, number> = {}

      Returns Record<string, number>