One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

HairLightingModel

struct · iOS 27.0+ · SDK 27.1

struct HairLightingModel

Configuration 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.

Members (1)

init · iOS 27.0+

init

TypeScript
static init(): HairLightingModel
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →