One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

PhysicallyBasedMaterial.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 ``PhysicallyBasedMaterial/clearcoatNormal-swift.property``.

Members (5)

get · iOS 18.0+

textureSemantic

TypeScript
static get textureSemantic(): TextureResource_Semantic
Swift declaration
static let textureSemantic: TextureResource.Semantic

The intended use of the object’s texture property.

get · iOS 18.0+

texture

TypeScript
get texture(): (MaterialParameters_Texture) | null
Swift declaration
var texture: PhysicallyBasedMaterial.Texture?

The material’s clearcoat normal map.

set · iOS 18.0+

texture

TypeScript
set texture(value: (MaterialParameters_Texture) | null)
Swift declaration
var texture: PhysicallyBasedMaterial.Texture?

The material’s clearcoat normal map.

init · iOS 18.0+

init

TypeScript
static initTexture(texture?: (MaterialParameters_Texture) | null): PhysicallyBasedMaterial_ClearcoatNormal
Swift declaration
init(texture: PhysicallyBasedMaterial.Texture? = nil)

Creates an object from a specified texture. - Parameters: - texture: The clearcoat normals as the texture of a UV-mapped image.

init · iOS 18.0+

init

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

Creates a clear coat normal object from a custom material’s clear coat normal property. - Parameters: - value: The `ClearcoatNormal` object from a `CustomMaterial.ClearcoatNormal` object.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →