ARKitLightingModel enum

Constants for ARKit lightingModel For every lighting model, the final color is computed as follows: finalColor = (

Inheritance

Constructors

ARKitLightingModel()
const

Values

phong → const ARKitLightingModel

Produces a specularly shaded surface where the specular reflection is shaded according the Phong BRDF approximation. The reflected color is calculated as: color =

blinn → const ARKitLightingModel

Produces a specularly shaded surface with a Blinn BRDF approximation. The reflected color is calculated as: color =

lambert → const ARKitLightingModel

Produces a diffuse shaded surface with no specular reflection. The result is based on Lambert’s Law, which states that when light hits a rough surface, the light is reflected in all directions equally. The reflected color is calculated as: color =

constant → const ARKitLightingModel

Produces a constantly shaded surface that is independent of lighting. The reflected color is calculated as: color =

physicallyBased → const ARKitLightingModel

Shading based on a realistic abstraction of physical lights and materials.

shadowOnly → const ARKitLightingModel

iOS 13 only (switches to blinn on older OSes)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ARKitLightingModel>
A constant List of the values in this enum, in order of their declaration.