textureSemantic
TypeScriptstatic get textureSemantic(): TextureResource_SemanticSwift declarationstatic let textureSemantic: TextureResource.SemanticThe intended use of the object’s texture property.
struct · iOS 18.0+ · SDK 27.1
struct ClearcoatNormalAn 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``.
static get textureSemantic(): TextureResource_SemanticSwift declarationstatic let textureSemantic: TextureResource.SemanticThe intended use of the object’s texture property.
get texture(): (MaterialParameters_Texture) | nullSwift declarationvar texture: PhysicallyBasedMaterial.Texture?The material’s clearcoat normal map.
set texture(value: (MaterialParameters_Texture) | null)Swift declarationvar texture: PhysicallyBasedMaterial.Texture?The material’s clearcoat normal map.
static initTexture(texture?: (MaterialParameters_Texture) | null): PhysicallyBasedMaterial_ClearcoatNormalSwift declarationinit(texture: PhysicallyBasedMaterial.Texture? = nil)Creates an object from a specified texture. - Parameters: - texture: The clearcoat normals as the texture of a UV-mapped image.
static init(value: CustomMaterial_ClearcoatNormal): PhysicallyBasedMaterial_ClearcoatNormalSwift declarationinit(_ 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.
No declarations were skipped in this snapshot.