---
title: contrast
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlskycubetexture/contrast
---

# contrast

The amount of contrast enhancement to apply during tone mapping.

## Declaration

```swift
var contrast: Float { get set }
```

## Discussion

Discussion To render a sky texture, Model I/O first simulates the colors visible in the sky at different directions and then applies tone mapping to fit the resulting colors into the range of displayable values. As part of this process, Model I/O uses this property to scale the contrast of the texture image.

## See Also

### Working with Tone Mapping Parameters

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