init
TypeScriptstatic init(): HairLightingModelSwift declarationinit()struct · iOS 27.0+ · SDK 27.1
struct HairLightingModelConfiguration for RealityKit's hair lighting model. `LitLightingModel` doesn't accurately represent hair and fur, since their thin, nearly cylindrical strands scatter light differently than a typical opaque surface. Use this lighting model for materials that shade hair or fur. To render with the hair lighting model, set a `ShaderGraphMaterial.Program.Descriptor`'s `lightingModel` to `.hair()`: ``` let descriptor = ShaderGraphMaterial.Program.Descriptor(shaderGraph: graph, lightingModel: .hair()) let program = try await ShaderGraphMaterial.Program(descriptor: descriptor) ``` The surface output node in the descriptor's `ShaderGraph` must produce hair-shading output for this model to take effect.
static init(): HairLightingModelSwift declarationinit()No declarations were skipped in this snapshot.