Contents

LowLevelMaterialResource.LightingFunction

A compiled Metal function that evaluates lighting.

Declaration

final class LightingFunction

Overview

Create a LightingFunction through a context’s lighting provider, using makeImageBasedLightingFunction() for image-based lighting or makeUnlitLightingFunction() for unlit shading.

Topics

Configuring shader arguments

See Also

Configuring the shaders