Contents

init(color:roughness:isMetallic:)

Creates a simple material with specific characteristics in macOS.

Declaration

init(color: SimpleMaterial.Color, roughness: MaterialScalarParameter = 0.0, isMetallic: Bool)

Parameters

  • color:

    The color of the material.

  • roughness:

    The roughness of the material.

  • isMetallic:

    A Boolean indicating whether the material should have a metallic appearance.