texture
TypeScriptget texture(): (CustomMaterial_CustomMaterialTexture) | nullSwift declarationvar texture: CustomMaterial.Texture?The material’s clearcoat normal map.
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 ``CustomMaterial/clearcoatNormal-swift.property``.
get texture(): (CustomMaterial_CustomMaterialTexture) | nullSwift declarationvar texture: CustomMaterial.Texture?The material’s clearcoat normal map.
set texture(value: (CustomMaterial_CustomMaterialTexture) | null)Swift declarationvar texture: CustomMaterial.Texture?The material’s clearcoat normal map.
static initTexture(texture?: (CustomMaterial_CustomMaterialTexture) | null): CustomMaterial_ClearcoatNormalSwift declarationinit(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.
static init(value: PhysicallyBasedMaterial_ClearcoatNormal): CustomMaterial_ClearcoatNormalSwift declarationinit(_ value: PhysicallyBasedMaterial.ClearcoatNormal)Construct a `CustomMaterial.ClearcoatNormal` object from a `PhysicallyBasedMaterial.ClearcoatNormal` - Parameters: - value: The `ClearcoatNormal` object from a `PhysicallyBasedMaterial`.
No declarations were skipped in this snapshot.