Contents

init(texture:)

Construct a CustomMaterial.ClearcoatNormal object from a texture.

Declaration

init(texture: CustomMaterial.Texture? = nil)

Parameters

  • texture:

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

Discussion

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