Modifier

Partager via


GLKFogMode Enum

Definition

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.

Applies to