<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKFogMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:@E@GLKFogMode"
  },
  "title" : "GLKFogMode"
}
-->

# GLKFogMode

A mode that describes how the fog component is calculated for the fragment.

```
enum GLKFogMode
```

## Topics

### Constants

[`GLKFogModeExp`](/documentation/GLKit/GLKFogMode/exp)

The fog component is calculated as `exp(-density * distance)` and clamped to the range `[0.0, 1.0]`.

[`GLKFogModeExp2`](/documentation/GLKit/GLKFogMode/exp2)

The fog component is calculated as `exp(-(density * distance)^2)` and clamped to the range `[0.0, 1.0]`.

[`GLKFogModeLinear`](/documentation/GLKit/GLKFogMode/linear)

The fog component is calculated as `(end - distance) / (end - start)` and clamped to the range `[0.0, 1.0]`.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)