Enumeration

MDLLightType

Options for the shape and style of illumination provided by a light, used by the lightType property.

Declaration

enum MDLLightType : UInt

Topics

Constants

case unknown

The type of the light is unknown or has not been initialized.

case ambient

The light source should illuminate a scene evenly regardless of position or direction.

case directional

The light source illuminates a scene from a uniform direction regardless of its position.

case spot

The light source illuminates a scene from a specific position and direction.

case point

The light source illuminates a scene in all directions from a specific position.

case linear

The light source illuminates a scene in all directions from an area in the shape of a line.

case discArea

The light source illuminates a scene in all directions from an area in the shape of a disc.

case rectangularArea

The light source illuminates a scene in all directions from an area in the shape of a rectangle.

case superElliptical

The light source illuminates a scene in all directions from an area in the shape of a superellipse.

case photometric

The illumination from the light is determined by a photometric profile.

case probe

The illumination from the light is determined by texture images representing a sample of a scene at a specific point.

case environment

The illumination from the light is determined by texture images representing a sample of the surrounding environment for a scene.