---
title: "init(tint:texture:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/physicallybasedmaterial/basecolor-swift.struct/init(tint:texture:)-2wriz"
---

# init(tint:texture:)

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

## Declaration

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

## Parameters

- `tint`: The tint color. Defaults to white.
- `texture`: An optional image texture.

## Discussion

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.

## See Also

### Creating a base color object

- [init(tint:texture:)](realitykit/physicallybasedmaterial/basecolor-swift.struct/init(tint:texture:)-5jeqr.md)
- [init(_:)](realitykit/physicallybasedmaterial/basecolor-swift.struct/init(_:).md)
