<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicallyBasedMaterial/BaseColor-swift.struct/init(tint:texture:)-2wriz",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation23PhysicallyBasedMaterialV9BaseColorV0A3KitE4tint7textureAESo7UIColorC_AA0E10ParametersV7TextureVSgtcfc"
  },
  "title" : "init(tint:texture:)"
}
-->

# init(tint:texture:)

Creates a base color object from a color or texture on macOS.

```
init(tint: UIColor = .white, texture: MaterialParameters.Texture? = nil)
```

## Parameters

`tint`

The tint color. Defaults to white.

`texture`

An optional image texture.

## Discussion

This initializer creates a new instance from a color or image texture,
or from both. If you don’t provide a `tint` color, `tint` defaults to
white.

If you specify `texture`, RealityKit calculates the final base color for
the entity by UV-mapping `texture` onto the entity and then multiplying
the color at any given pixel by `tint`. If `tint` is white, RealityKit
renders the textured untinted.

If you don’t specify a texture, RealityKit uses `tint` as the entity’s
base color.

---

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)