---
title: specularCubeDimension
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/environmentresource/createoptions/specularcubedimension
---

# specularCubeDimension

The dimension of the computed specular cubemap for material reflections.

## Declaration

```swift
var specularCubeDimension: Int?
```

## Discussion

Discussion If nil, the environment resource uses the source cubemap’s dimensions. A value lower than that of the cubemap helps to reduce the memory footprint in scenes where you view skybox details through specular reflections. note: The specular cube dimension clamps to the source cubemap’s dimensions if it exceeds them.

## See Also

### Accessing the option properties

- [compression](realitykit/environmentresource/createoptions/compression.md)
- [samplingQuality](realitykit/environmentresource/createoptions/samplingquality-swift.property.md)
