Instance Property

materialIndexOfRefraction

The index of refraction for the medium surrounding a material.

Declaration

@property(nonatomic, readonly, retain) MDLMaterialProperty *materialIndexOfRefraction;

Discussion

This value corresponds to the n1 parameter in Schlick’s equation for approximating Fresnel reflection effects. Typically, one assumes a the medium surrounding a material is air or empty space, so the default value of 1.0 suffices for most uses of this semantic.

See Also

Working with Shading Properties

baseColor

The inherent color of the material, to be used as a modulator during shading.

emission

The color emitted as radiance from a material’s surface.

specular

The intensity of specular highlights on the material’s surface.

interfaceIndexOfRefraction

The index of refraction for a material itself.

normal

The variation in the surface normal vectors in a material, relative to model coordinate space.

ambientOcclusion

The attenuation of ambient light due to local geometry variations on a surface.

ambientOcclusionScale

The scaling factor for ambient occlusion shading.

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