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

# mode

The algorithm used to compute the density of the fog applied to the fragment color.

## Declaration

```swift
var mode: GLint { get set }
```

## Topics

### Related Documentation

- [GLKFogMode](glkit/glkfogmode.md)
