---
title: MDLSkyCubeTexture
framework: modelio
role: symbol
role_heading: Class
path: modelio/mdlskycubetexture
---

# MDLSkyCubeTexture

A generator of texel data that creates cube textures using a physically realistic simulation of the sunlit sky.

## Declaration

```swift
class MDLSkyCubeTexture
```

## Overview

Overview The sky textures generated by this class can can be useful as environment maps or light probes in rendering. Like other procedural MDLTexture subclasses, the MDLSkyCubeTexture class generates texel data only when that data is first referenced, and then caches it for future use.

## Topics

### Creating a Sky Cube Texture

- [init(name:channelEncoding:textureDimensions:turbidity:sunElevation:upperAtmosphereScattering:groundAlbedo:)](modelio/mdlskycubetexture/init(name:channelencoding:texturedimensions:turbidity:sunelevation:upperatmospherescattering:groundalbedo:).md)

### Working with Sky Simulation Parameters

- [turbidity](modelio/mdlskycubetexture/turbidity.md)
- [sunElevation](modelio/mdlskycubetexture/sunelevation.md)
- [upperAtmosphereScattering](modelio/mdlskycubetexture/upperatmospherescattering.md)
- [groundAlbedo](modelio/mdlskycubetexture/groundalbedo.md)
- [groundColor](modelio/mdlskycubetexture/groundcolor.md)
- [horizonElevation](modelio/mdlskycubetexture/horizonelevation.md)

### Working with Tone Mapping Parameters

- [gamma](modelio/mdlskycubetexture/gamma.md)
- [exposure](modelio/mdlskycubetexture/exposure.md)
- [brightness](modelio/mdlskycubetexture/brightness.md)
- [contrast](modelio/mdlskycubetexture/contrast.md)
- [saturation](modelio/mdlskycubetexture/saturation.md)
- [highDynamicRangeCompression](modelio/mdlskycubetexture/highdynamicrangecompression.md)

### Updating Texture Data

- [update()](modelio/mdlskycubetexture/update().md)

### Initializers

- [init(name:channelEncoding:textureDimensions:turbidity:sunElevation:sunAzimuth:upperAtmosphereScattering:groundAlbedo:)](modelio/mdlskycubetexture/init(name:channelencoding:texturedimensions:turbidity:sunelevation:sunazimuth:upperatmospherescattering:groundalbedo:).md)

### Instance Properties

- [sunAzimuth](modelio/mdlskycubetexture/sunazimuth.md)

## Relationships

### Inherits From

- [MDLTexture](modelio/mdltexture.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [MDLNamed](modelio/mdlnamed.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Textures

- [MDLTexture](modelio/mdltexture.md)
- [MDLCheckerboardTexture](modelio/mdlcheckerboardtexture.md)
- [MDLColorSwatchTexture](modelio/mdlcolorswatchtexture.md)
- [MDLNoiseTexture](modelio/mdlnoisetexture.md)
- [MDLNormalMapTexture](modelio/mdlnormalmaptexture.md)
- [MDLURLTexture](modelio/mdlurltexture.md)
- [MDLTextureFilter](modelio/mdltexturefilter.md)
- [MDLTextureSampler](modelio/mdltexturesampler.md)
