The fog mode determines the equation used to calculate the fogging blend factor while fogging is enabled. The simplest %COGL_FOG_MODE_LINEAR mode determines f as:
|[ f = end - eye_distance / end - start
Where eye_distance is the distance of the current fragment in eyecoordinates from the origin.
Calculates the fog blend factor as: |[ f = e ^ -(density * eye_distance) ```
Calculates the fog blend factor as: |[ f = e ^ -(density * eye_distance)^2 ```
Calculates the fog blend factor as: |[ f = end - eye_distance / end - start ```
The fog mode determines the equation used to calculate the fogging blend factor while fogging is enabled. The simplest %COGL_FOG_MODE_LINEAR mode determines f as:
|[ f = end - eye_distance / end - start