Contents

makeImageBasedLightingFunction()

Returns a lighting function using image-based lighting (IBL).

Declaration

func makeImageBasedLightingFunction() -> sending LowLevelMaterialResource.LightingFunction

Return Value

An image-based LowLevelMaterialResource.LightingFunction.

Discussion

The lighting function expects two cubemap textures bound via its corresponding LowLevelArgumentTable: one for diffuse and one for specular. Prepare these using LowLevelTextureProcessingContext/generateImageBasedLightDiffuse and LowLevelTextureProcessingContext/generateImageBasedLightSpecular.

See Also

Making lighting functions