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

# init(_:)

Creates a roughness object from a custom material’s roughness property.

## Declaration

```swift
init(_ value: CustomMaterial.Roughness)
```

## Parameters

- `value`: The custom material’s roughness property.

## See Also

### Creating a roughness object

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