<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicallyBasedDecalComponent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation29PhysicallyBasedDecalComponentV"
  },
  "title" : "PhysicallyBasedDecalComponent"
}
-->

# PhysicallyBasedDecalComponent

A component that specifies a decal to be applied on the scene.
A decal is essentially a projective texture applied to any mesh on the scene.
The transform of the decal is inherited from the entity’s transform.
The decal is projected along the local space negative z onto the meshes within its volume.
All decal textures expect 2D texture resources.
Decal textures do not support custom sampler, UV index, or swizzle options from
[`PhysicallyBasedMaterial`](/documentation/RealityKit/PhysicallyBasedMaterial) parameter types. All textures are sampled using bilinear filtering,
projected UVs from the decal volume, and fixed channel mapping.
Decals are available on devices with Apple6 GPU family feature support.

```
struct PhysicallyBasedDecalComponent
```

## Topics

### Creating a decal component

[`init(baseColor:)`](/documentation/RealityKit/PhysicallyBasedDecalComponent/init(baseColor:))

Creates a new instance with [`PhysicallyBasedMaterial.BaseColor`](/documentation/RealityKit/PhysicallyBasedMaterial/BaseColor-swift.struct).
The tint color is multiplied with the baseColor.
If base color texture is not specified, the tint color is applied as a solid color.

### Configuring decal appearance

[`opacity`](/documentation/RealityKit/PhysicallyBasedDecalComponent/opacity)

An optional opacity texture for the decal.

### Controlling decal rendering

[`layers`](/documentation/RealityKit/PhysicallyBasedDecalComponent/layers)

The layers this decal affects.
Only entities whose [`layers`](/documentation/RealityKit/RenderLayerComponent/layers) intersect with these layers will be affected.

[`sortOrder`](/documentation/RealityKit/PhysicallyBasedDecalComponent/sortOrder)

The sort layer for the decal.
Higher layers show up on top of lower layers.

[`receiverEntities`](/documentation/RealityKit/PhysicallyBasedDecalComponent/receiverEntities)

An optional set of receiver entities that are not part of any layers.
The limit on the number of receiver entities is 8, extra entities are ignored.



---

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)