Class

MDLPhysicallyPlausibleLight

A light source for use in shading models based on real-world physics.

Declaration

@interface MDLPhysicallyPlausibleLight : MDLLight

Topics

Managing Light Color and Intensity

color

The color of the light source.

lumens

The total visible intensity of the light source, in lumens.

- setColorByTemperature:

Sets the light’s color based on a black-body temperature.

Managing Light Geometry

innerConeAngle

The radial angle, in degrees, of the area fully illuminated by the light.

outerConeAngle

The radial angle, in degrees, at which the illumination from a spotlight becomes zero.

Managing Attenuation

attenuationStartDistance

The distance from the light source, in units of local coordinate space, at which its illumination begins to diminish.

attenuationEndDistance

The distance from the light source, in units of local coordinate space, at which its illumination becomes zero.

Relationships

Inherits From

See Also

Lights

MDLLight

The abstract superclass for objects that describe light sources in a scene.

MDLAreaLight

A light source that illuminates a 3D scene from an area with a specific shape.

MDLLightProbe

A light source described in terms of the variations in color and intensity of its illumination in all directions.

MDLLightProbeIrradianceDataSource

Adopt this protocol to provide information for use in automatic placement of light probes around a scene.

MDLPhotometricLight

A light source whose shape, direction, and intensity of illumination are determined by a photometric profile.