One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

LitLightingModel

struct · iOS 27.0+ · SDK 27.1

struct LitLightingModel

Configuration for RealityKit's physically based lighting model.

Members (13)

get · iOS 27.0+

diffuseModel

TypeScript
get diffuseModel(): LitLightingModel_DiffuseModel
Swift declaration
var diffuseModel: LitLightingModel.DiffuseModel

The diffuse algorithm to use.

set · iOS 27.0+

diffuseModel

TypeScript
set diffuseModel(value: LitLightingModel_DiffuseModel)
Swift declaration
var diffuseModel: LitLightingModel.DiffuseModel

The diffuse algorithm to use.

get · iOS 27.0+

specularModel

TypeScript
get specularModel(): LitLightingModel_SpecularModel
Swift declaration
var specularModel: LitLightingModel.SpecularModel

The specular algorithm to use.

set · iOS 27.0+

specularModel

TypeScript
set specularModel(value: LitLightingModel_SpecularModel)
Swift declaration
var specularModel: LitLightingModel.SpecularModel

The specular algorithm to use.

get · iOS 27.0+

isClearcoatEnabled

TypeScript
get isClearcoatEnabled(): boolean
Swift declaration
var isClearcoatEnabled: Bool

Whether to include a clearcoat layer in the lighting calculation.

set · iOS 27.0+

isClearcoatEnabled

TypeScript
set isClearcoatEnabled(value: boolean)
Swift declaration
var isClearcoatEnabled: Bool

Whether to include a clearcoat layer in the lighting calculation.

get · iOS 27.0+

isBentNormalEnabled

TypeScript
get isBentNormalEnabled(): boolean
Swift declaration
var isBentNormalEnabled: Bool

Whether to apply bent normal maps to improve ambient occlusion accuracy.

set · iOS 27.0+

isBentNormalEnabled

TypeScript
set isBentNormalEnabled(value: boolean)
Swift declaration
var isBentNormalEnabled: Bool

Whether to apply bent normal maps to improve ambient occlusion accuracy.

get · iOS 27.0+

isMultiscatteringEnabled

TypeScript
get isMultiscatteringEnabled(): boolean
Swift declaration
var isMultiscatteringEnabled: Bool

Whether to account for multiple scattering between microfacets. Improves accuracy at the cost of performance, particularly for rough surfaces.

set · iOS 27.0+

isMultiscatteringEnabled

TypeScript
set isMultiscatteringEnabled(value: boolean)
Swift declaration
var isMultiscatteringEnabled: Bool

Whether to account for multiple scattering between microfacets. Improves accuracy at the cost of performance, particularly for rough surfaces.

get · iOS 27.0+

isSubsurfaceScatteringEnabled

TypeScript
get isSubsurfaceScatteringEnabled(): boolean
Swift declaration
var isSubsurfaceScatteringEnabled: Bool

Whether to include subsurface scattering in the lighting calculation.

set · iOS 27.0+

isSubsurfaceScatteringEnabled

TypeScript
set isSubsurfaceScatteringEnabled(value: boolean)
Swift declaration
var isSubsurfaceScatteringEnabled: Bool

Whether to include subsurface scattering in the lighting calculation.

init · iOS 27.0+

init

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

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →