API

Function PrepareUniformsAndSamplersForLight

  • Prepares the uniforms and samplers list to be used in the effect (for a specific light)

    Parameters

    • lightIndex: number

      defines the light index

    • uniformsList: string[]

      The uniform list

    • samplersList: string[]

      The sampler list

    • OptionalprojectedLightTexture: any

      defines 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