---
title: "init(texture:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/custommaterial/clearcoatnormal-swift.struct/init(texture:)"
---

# init(texture:)

Construct a CustomMaterial.ClearcoatNormal object from a texture.

## Declaration

```swift
init(texture: CustomMaterial.Texture? = nil)
```

## Parameters

- `texture`: The clearcoat normals as the texture of a UV-mapped image.

## Discussion

Discussion if let textureResource = try? TextureResource.load(named: "entity_cc_normalMap") {     let ccNormalMap = CustomMaterial.Texture(textureResource)     let clearcoatNormal = CustomMaterial.ClearcoatNormal(texture: ccNormalMap) }
