Function PrepareUniformsAndSamplersForLight
-
PrepareUniformsAndSamplersForLight(
lightIndex: number,
uniformsList: string[],
samplersList: string[],
projectedLightTexture?: any,
uniformBuffersList?: Nullable<string[]>,
updateOnlyBuffersList?: boolean,
iesLightTexture?: boolean,
clusteredLightTextures?: boolean,
rectAreaLightTexture?: boolean,
clusteredLightStorageBuffer?: boolean,
): voidParameters
- lightIndex: number
defines the light index
- uniformsList: string[]
The uniform list
- samplersList: string[]
The sampler list
OptionalprojectedLightTexture: anydefines if projected texture must be used
- uniformBuffersList: Nullable<string[]> = null
defines an optional list of uniform buffers
- updateOnlyBuffersList: boolean = false
True to only update the uniformBuffersList array
- iesLightTexture: boolean = false
defines if IES texture must be used
- clusteredLightTextures: boolean = false
defines if the clustered light textures must be used
- rectAreaLightTexture: boolean = false
defines if rect area light is using a emission texture.
- clusteredLightStorageBuffer: boolean = false
defines if the clustered light tile mask uses a storage buffer instead of a texture
Returns void
- lightIndex: number
Prepares the uniforms and samplers list to be used in the effect (for a specific light)