One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

CustomMaterial.ClearcoatNormal

struct · iOS 18.0+ · SDK 27.1

struct ClearcoatNormal

An object that defines the clearcoat normal map texture. An entity in RealityKit can display a clearcoat, which is a separate layer of transparent specular highlights used to simulate a clear coating, like on a car or the surface of lacquered objects. Use this object to specify a clearcoat normal and vary the normal used to calculate the clearcoat. This can be used to add imperfections and waviness to the clearcoat layer. For information, see ``CustomMaterial/clearcoatNormal-swift.property``.

Members (4)

get · iOS 18.0+

texture

TypeScript
get texture(): (CustomMaterial_CustomMaterialTexture) | null
Swift declaration
var texture: CustomMaterial.Texture?

The material’s clearcoat normal map.

set · iOS 18.0+

texture

TypeScript
set texture(value: (CustomMaterial_CustomMaterialTexture) | null)
Swift declaration
var texture: CustomMaterial.Texture?

The material’s clearcoat normal map.

init · iOS 18.0+

init

TypeScript
static initTexture(texture?: (CustomMaterial_CustomMaterialTexture) | null): CustomMaterial_ClearcoatNormal
Swift declaration
init(texture: CustomMaterial.Texture? = nil)

Construct a `CustomMaterial.ClearcoatNormal` object from a texture. ```swift if let textureResource = try? TextureResource.load(named: "entity_cc_normalMap") { let ccNormalMap = CustomMaterial.Texture(textureResource) let clearcoatNormal = CustomMaterial.ClearcoatNormal(texture: ccNormalMap) } ``` - Parameters: - texture: The clearcoat normals as the texture of a UV-mapped image.

init · iOS 18.0+

init

TypeScript
static init(value: PhysicallyBasedMaterial_ClearcoatNormal): CustomMaterial_ClearcoatNormal
Swift declaration
init(_ value: PhysicallyBasedMaterial.ClearcoatNormal)

Construct a `CustomMaterial.ClearcoatNormal` object from a `PhysicallyBasedMaterial.ClearcoatNormal` - Parameters: - value: The `ClearcoatNormal` object from a `PhysicallyBasedMaterial`.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →