---
title: density
framework: GLKit
role: symbol
role_heading: Instance Property
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: glkit/glkeffectpropertyfog/density
---

# density

The rate at which the fog exponent increases.

## Declaration

```swift
var density: GLfloat { get set }
```

## Discussion

Discussion This property is ignored when the mode property is set to GLKFogMode.linear.

## See Also

### Fog Properties

- [color](glkit/glkeffectpropertyfog/color.md)
- [start](glkit/glkeffectpropertyfog/start.md)
- [end](glkit/glkeffectpropertyfog/end.md)
