<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicallyBasedMaterial/Metallic-swift.struct/init(floatLiteral:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation23PhysicallyBasedMaterialV8MetallicV12floatLiteralAESf_tcfc"
  },
  "title" : "init(floatLiteral:)"
}
-->

# init(floatLiteral:)

Creates an object from single value.

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

## Parameters

`value`

The reflectiveness value for the material.

## 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.

![An illustration showing two spheres rendered in RealityKit. The](images/com.apple.RealityKit/PhysicallyBasedMaterial-Metallic-swift-struct-init(floatLiteral:)-1@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)