iOS reference / RealityFoundation / LightingModelRealityFoundation · IOS API REFERENCE
LightingModel enum · iOS 27.0+ · SDK 27.1
enum LightingModelThe 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): LightingModelSwift declaration static func lit(diffuseModel: LitLightingModel.DiffuseModel = .hammon, specularModel: LitLightingModel.SpecularModel = .ggx, isSubsurfaceScatteringEnabled: Bool = false, isMultiscatteringEnabled: Bool = true, isBentNormalEnabled: Bool = false, isClearcoatEnabled: Bool = false) -> LightingModelstatic · iOS 27.0+ hair TypeScript static hair(): LightingModelSwift declaration static func hair() -> LightingModelstatic · iOS 27.0+ unlit TypeScript static unlit(isTonemappingEnabled?: boolean): LightingModelSwift declaration static func unlit(isTonemappingEnabled: Bool = true) -> LightingModelSkipped declarations No declarations were skipped in this snapshot.
All RealityFoundation types →