Gjsify LogoGjsify Logo

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 eye
coordinates from the origin.

Index

Enumeration Members

EXPONENTIAL: number

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

EXPONENTIAL_SQUARED: number

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

LINEAR: number

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

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method