Instance Property

boundingBox

The bounding region of the scene to which light probes are being added.

Required.

Declaration

var boundingBox: MDLAxisAlignedBoundingBox { get set }

Discussion

When you call the MDLAsset placeLightProbes(withDensity:heuristic:using:) method to automatically distribute light probes in a scene, Model I/O reads this property to ask your code which regions should be evaluated for light probe placement.

See Also

Providing Light Probe Information

var sphericalHarmonicsLevel: Int

The number of levels of spherical harmonics information provided by the data source.

func sphericalHarmonicsCoefficients(atPosition: vector_float3) -> Data

Asks the data source to provide spherical harmonics coefficients that describe lighting conditions in all directions from the specified point in a scene.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software