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

# init(floatLiteral:)

Creates an object from a single value.

## Declaration

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

## Parameters

- `value`: The roughness value.

## Discussion

Discussion The roughness property represents how much the surface of the entity scatters light it reflects. A material with a high roughness has a matte appearance, while one with a low roughness has a shiny appearance.

Use this initializer to create an object to specify the amount of roughness using a single value that applies to the entire material.

## See Also

### Creating a roughness object

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