Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RenderAdditiveLightQueue

叠加光照队列。

Hierarchy

  • RenderAdditiveLightQueue

Index

Constructors

constructor

Properties

Private _batchedQueue

_batchedQueue: RenderBatchedQueue

Private _cameraUBO

_cameraUBO: Float32Array = new Float32Array(UBOCamera.COUNT)

Private _descriptorSetMap

_descriptorSetMap: Map<Light, DescriptorSet> = new Map()

Private _device

_device: Device

Private _firstLightBufferView

_firstLightBufferView: Buffer

Private _fpScale

_fpScale: number

Private _globalUBO

_globalUBO: Float32Array = new Float32Array(UBOGlobal.COUNT)

Private _instancedQueue

_instancedQueue: RenderInstancedQueue

Private _isHDR

_isHDR: boolean

Private _lightBuffer

_lightBuffer: Buffer

Private _lightBufferCount

_lightBufferCount: number = 16

Private _lightBufferData

_lightBufferData: Float32Array

Private _lightBufferElementCount

_lightBufferElementCount: number

Private _lightBufferStride

_lightBufferStride: number

Private _lightMeterScale

_lightMeterScale: number = 10000

Private _lightPasses

_lightPasses: IAdditiveLightPass[] = []

Private _pipeline

_pipeline: ForwardPipeline

Private _renderObjects

_renderObjects: IRenderObject[]

Private _sampler

_sampler: Sampler | null = null

Private _shadowUBO

_shadowUBO: Float32Array = new Float32Array(UBOShadow.COUNT)

Private _validLights

_validLights: Light[] = []

Methods

Protected addRenderQueue

  • addRenderQueue(pass: Pass, subModel: SubModel, model: Model, lightPassIdx: number, validLights: Light[]): void

Protected gatherValidLights

  • gatherValidLights(camera: Camera, validLights: Light[]): void

Protected getOrCreateDescriptorSet

  • getOrCreateDescriptorSet(light: Light): undefined | DescriptorSet

Protected lightCulling

  • lightCulling(model: Model, validLights: Light[]): void

Protected updateCameraUBO

  • updateCameraUBO(camera: Camera): void

Protected updateGlobalDescriptorSet

  • updateGlobalDescriptorSet(camera: Camera, cmdBuff: CommandBuffer): void

Protected updateLightDescriptorSet

  • updateLightDescriptorSet(camera: Camera, cmdBuff: CommandBuffer): void

Protected updateUBOs

clear

  • clear(): void

destroy

  • destroy(): void

gatherLightPasses

  • gatherLightPasses(camera: Camera, cmdBuff: CommandBuffer): void

recordCommandBuffer

Generated using TypeDoc