Cogl.FogMode

The fog mode determines the equation used to calculate the fogging blend factor while fogging is enabled. The simplest Cogl.FogMode.linear mode determines f as:

|[ f = end - eye_distance / end - start ]|

Where eye_distance is the distance of the current fragment in eye coordinates from the origin.

Since 1.0

FogMode.LINEAR

Calculates the fog blend factor as: |[ f = end - eye_distance / end - start ]|

FogMode.EXPONENTIAL

Calculates the fog blend factor as: |[ f = e ^ -(density * eye_distance) ]|

FogMode.EXPONENTIAL_SQUARED

Calculates the fog blend factor as: |[ f = e ^ -(density * eye_distance)^2 ]|