# SetFogRange

## Description

Sets the range of the 3D fog. No fog will occur within the minimum distance, after which the fog will begin to take affect. The maximum distance is not a limit and is only a rough guide for how far you want to be able to see in your scene. The fog increases exponentially to mimic reality, meaning it increases quickly at first then tails off and gradually reaches full intensity around the maximum distance.

## Definition

SetFogRange( minDist, maxDist )

void agk::SetFogRange( float minDist, float maxDist )

## Parameters

- minDist - The minimum distance for the fog, no fog will affect pixels within this distance from the camera.
- maxDist - The maximum distance for the fog, the fog will reach full intensity around this distance.