createColorInstance
fun createColorInstance(color: Color, metallic: Float = kMaterialDefaultMetallic, roughness: Float = kMaterialDefaultRoughness, reflectance: Float = kMaterialDefaultReflectance): MaterialInstance
fun createColorInstance(color: Int, metallic: Float = kMaterialDefaultMetallic, roughness: Float = kMaterialDefaultRoughness, reflectance: Float = kMaterialDefaultReflectance): MaterialInstance
fun createColorInstance(color: Color, metallic: Float = kMaterialDefaultMetallic, roughness: Float = kMaterialDefaultRoughness, reflectance: Float = kMaterialDefaultReflectance): MaterialInstance
Creates an opaque or transparent Material depending on the color alpha with the Color passed in.
The Color can be modified by calling MaterialInstance.setColor. The metallicness, roughness, and reflectance can be modified using MaterialInstance.setMetallic, MaterialInstance.setRoughness, MaterialInstance.setReflectance.