One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

LightingModel

enum · iOS 27.0+ · SDK 27.1

enum LightingModel

The lighting model used by a ``ShaderGraphMaterial/Program``. This must match the type of the surface output node in the ``ShaderGraph``. For example, a graph whose surface node is a PBR surface shader requires `.lit`.

Members (3)

static · iOS 27.0+

lit

TypeScript
static lit(diffuseModel?: LitLightingModel_DiffuseModel, specularModel?: LitLightingModel_SpecularModel, isSubsurfaceScatteringEnabled?: boolean, isMultiscatteringEnabled?: boolean, isBentNormalEnabled?: boolean, isClearcoatEnabled?: boolean): LightingModel
Swift declaration
static func lit(diffuseModel: LitLightingModel.DiffuseModel = .hammon, specularModel: LitLightingModel.SpecularModel = .ggx, isSubsurfaceScatteringEnabled: Bool = false, isMultiscatteringEnabled: Bool = true, isBentNormalEnabled: Bool = false, isClearcoatEnabled: Bool = false) -> LightingModel
static · iOS 27.0+

hair

TypeScript
static hair(): LightingModel
Swift declaration
static func hair() -> LightingModel
static · iOS 27.0+

unlit

TypeScript
static unlit(isTonemappingEnabled?: boolean): LightingModel
Swift declaration
static func unlit(isTonemappingEnabled: Bool = true) -> LightingModel

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →