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

# init(floatLiteral:)

Creates an object from single value.

## Declaration

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

## Parameters

- `value`: The reflectiveness value for the material.

## Discussion

Discussion In PBR rendering, the metallic property represents the reflectiveness of an entity. This initializer creates a new object from a single value to describe the reflectiveness of the entire material. A value of 0.0 creates a dielectric (or non-reflective) material. Values greater than 0.0 result in an increasingly metallic (or reflective) materials.

## See Also

### Creating a metallic object

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