GLKFogMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An enumeration whose values specify different types of fog effect.
public enum GLKFogMode
type GLKFogMode =
- Inheritance
-
GLKFogMode
Fields
Name | Value | Description |
---|---|---|
Exp | 0 | The fog is calculated using Math.Exp(-density * distance). |
Exp2 | 1 | The fog is calculated using Math.Exp(-(density * distance) ^2). |
Linear | 2 | The fog is calculated using (end - distance) / (end - start). |
Remarks
In all cases, the fog calculation is clamped to the range 0..1.