<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicallyBasedMaterial/BaseColor-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation23PhysicallyBasedMaterialV9BaseColorV"
  },
  "title" : "PhysicallyBasedMaterial.BaseColor"
}
-->

# PhysicallyBasedMaterial.BaseColor

An object that defines an entity’s base color.

```
struct BaseColor
```

## Overview

Use this struct to specify an entity’s base color, which defines the
entity’s appearance before RealityKit calculates the effect of lighting
or material properties such as
[`roughness`](/documentation/RealityKit/PhysicallyBasedMaterial/roughness-swift.property) or
[`metallic`](/documentation/RealityKit/PhysicallyBasedMaterial/metallic-swift.property). For more
information, see [`baseColor`](/documentation/RealityKit/PhysicallyBasedMaterial/baseColor-swift.property).

## Topics

### Creating a base color object

[`init(tint:texture:)`](/documentation/RealityKit/PhysicallyBasedMaterial/BaseColor-swift.struct/init(tint:texture:)-2wriz)

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

[`init(tint:texture:)`](/documentation/RealityKit/PhysicallyBasedMaterial/BaseColor-swift.struct/init(tint:texture:)-5jeqr)

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

[`init(_:)`](/documentation/RealityKit/PhysicallyBasedMaterial/BaseColor-swift.struct/init(_:))

Creates a base color object from a custom material’s base color
property.

### Accessing texture data

[`texture`](/documentation/RealityKit/PhysicallyBasedMaterial/BaseColor-swift.struct/texture)

The base color as a UV Image map.

[`textureSemantic`](/documentation/RealityKit/PhysicallyBasedMaterial/BaseColor-swift.struct/textureSemantic)

The intended use of this object’s texture property.



---

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)