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

# GLKEffectPropertyFog

Fog drawing information for use in GLKit rendering effects.

## Declaration

```swift
class GLKEffectPropertyFog
```

## Overview

Overview These properties are specifically designed to mimic the fog calculations provided by OpenGL ES 1.1. When fog is enabled, the fog component is calculated and clamped to a range from 0.0 to 1.0. Then, the fog value is used as a blending factor between the computed fragment color and the fog color.

## Topics

### Enabling Fog

- [enabled](glkit/glkeffectpropertyfog/enabled.md)

### Choosing the Fog Mode

- [mode](glkit/glkeffectpropertyfog/mode.md)

### Fog Properties

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

### Constants

- [GLKFogMode](glkit/glkfogmode.md)

## Relationships

### Inherits From

- [GLKEffectProperty](glkit/glkeffectproperty.md)

### Conforms To

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

## See Also

### Rendering Effect Parameters

- [GLKEffectProperty](glkit/glkeffectproperty.md)
- [GLKEffectPropertyLight](glkit/glkeffectpropertylight.md)
- [GLKEffectPropertyTexture](glkit/glkeffectpropertytexture.md)
- [GLKEffectPropertyMaterial](glkit/glkeffectpropertymaterial.md)
- [GLKEffectPropertyTransform](glkit/glkeffectpropertytransform.md)
- [GLKit Effects Constants](glkit/glkit-effects-constants.md)
