---
title: scale
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/custommaterial/specular-swift.struct/scale
---

# scale

The specular value for the entire entity or a multiplier for values sampled from the material’s texture.

## Declaration

```swift
var scale: Float
```

## Discussion

Discussion If texture is nil, RealityKit uses this value for the opacity of the entire material. If texture isn’t nil, RealityKit multiplies the value sampled from texture by this property to calculate the final opacity values.

## See Also

### Accessing specular values

- [texture](realitykit/custommaterial/specular-swift.struct/texture.md)
