Type Alias

SCNLightingModel

Constants specifying the lighting and shading algorithm to use for rendering a material.

Declaration

typedef NSString *SCNLightingModel;

Discussion

Figure 1

Lighting model examples

Topics

Type Properties

SCNLightingModelBlinn

Shading that incorporates ambient, diffuse, and specular properties, where specular highlights are calculated using the Blinn-Phong formula.

SCNLightingModelConstant

Uniform shading that incorporates ambient lighting only.

SCNLightingModelLambert

Shading that incorporates ambient and diffuse properties only.

SCNLightingModelPhong

Shading that incorporates ambient, diffuse, and specular properties, where specular highlights are calculated using the Phong formula.

SCNLightingModelPhysicallyBased

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

See Also

Choosing a Shading Model

lightingModelName

The lighting formula that SceneKit uses to render the material.

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