---
title: "init(floatLiteral:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/physicallybasedmaterial/clearcoat-swift.struct/init(floatliteral:)"
---

# init(floatLiteral:)

Creates a clearcoat object using a single value.

## Declaration

```swift
init(floatLiteral value: Float)
```

## Parameters

- `value`: The clearcoat value to use for the entity.

## Discussion

Discussion A clearcoat is a separate layer of transparent specular highlights used to simulate a clear transparent coating, like the paint on a car, or the surface of lacquered objects. Use this initializer to create an object to specify the amount of clearcoat for a material using a single value that applies to the entire material.

## See Also

### Creating a clearcoat object

- [init(scale:texture:)](realitykit/physicallybasedmaterial/clearcoat-swift.struct/init(scale:texture:).md)
- [init(_:)](realitykit/physicallybasedmaterial/clearcoat-swift.struct/init(_:).md)
