Instance Method

irradiance(atPoint:colorSpace:)

Returns the radiance of the light as received at a specific point in the same scene, expressed using the specified color space.

Declaration

func irradiance(atPoint point: vector_float3, colorSpace: CGColorSpace) -> Unmanaged<CGColor>

Parameters

point

A point in the same world coordinate space as the light.

colorSpace

The color space in which to interpret the light’s color.

Return Value

The color and intensity of the light’s effect on the specified point.

See Also

Working with Lights

func irradiance(atPoint: vector_float3) -> Unmanaged<CGColor>

Returns the radiance of the light as received at a specific point in the same scene.

var lightType: MDLLightType

The type of the light.

var colorSpace: String

The name of the Core Graphics color space to be used for interpreting the light's color information.