diffuseModel
TypeScriptget diffuseModel(): LitLightingModel_DiffuseModelSwift declarationvar diffuseModel: LitLightingModel.DiffuseModelThe diffuse algorithm to use.
struct · iOS 27.0+ · SDK 27.1
struct LitLightingModelConfiguration for RealityKit's physically based lighting model.
get diffuseModel(): LitLightingModel_DiffuseModelSwift declarationvar diffuseModel: LitLightingModel.DiffuseModelThe diffuse algorithm to use.
set diffuseModel(value: LitLightingModel_DiffuseModel)Swift declarationvar diffuseModel: LitLightingModel.DiffuseModelThe diffuse algorithm to use.
get specularModel(): LitLightingModel_SpecularModelSwift declarationvar specularModel: LitLightingModel.SpecularModelThe specular algorithm to use.
set specularModel(value: LitLightingModel_SpecularModel)Swift declarationvar specularModel: LitLightingModel.SpecularModelThe specular algorithm to use.
get isClearcoatEnabled(): booleanSwift declarationvar isClearcoatEnabled: BoolWhether to include a clearcoat layer in the lighting calculation.
set isClearcoatEnabled(value: boolean)Swift declarationvar isClearcoatEnabled: BoolWhether to include a clearcoat layer in the lighting calculation.
get isBentNormalEnabled(): booleanSwift declarationvar isBentNormalEnabled: BoolWhether to apply bent normal maps to improve ambient occlusion accuracy.
set isBentNormalEnabled(value: boolean)Swift declarationvar isBentNormalEnabled: BoolWhether to apply bent normal maps to improve ambient occlusion accuracy.
get isMultiscatteringEnabled(): booleanSwift declarationvar isMultiscatteringEnabled: BoolWhether to account for multiple scattering between microfacets. Improves accuracy at the cost of performance, particularly for rough surfaces.
set isMultiscatteringEnabled(value: boolean)Swift declarationvar isMultiscatteringEnabled: BoolWhether to account for multiple scattering between microfacets. Improves accuracy at the cost of performance, particularly for rough surfaces.
get isSubsurfaceScatteringEnabled(): booleanSwift declarationvar isSubsurfaceScatteringEnabled: BoolWhether to include subsurface scattering in the lighting calculation.
set isSubsurfaceScatteringEnabled(value: boolean)Swift declarationvar isSubsurfaceScatteringEnabled: BoolWhether to include subsurface scattering in the lighting calculation.
static init(): LitLightingModelSwift declarationinit()No declarations were skipped in this snapshot.