Enumeration Case


The degree to which a material appears smooth, affecting both diffuse and specular response.


case roughness = 6


At lower values, the material appears shiny, with well-defined specular highlights. At higher values, a diffuse material becomes retroreflective, and specular highlights are very spread out.

Model I/O uses this semantic for the roughness and map_roughness attributes when importing from the MTL file format (for assets in the OBJ file format).

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