<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLMaterialSemantic/roughness",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:@E@MDLMaterialSemantic@MDLMaterialSemanticRoughness"
  },
  "title" : "MDLMaterialSemantic.roughness"
}
-->

# MDLMaterialSemantic.roughness

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

```
case roughness
```

## Discussion

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).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)