Class

GLKEffectPropertyFog

Fog drawing information for use in GLKit rendering effects.

Declaration

@interface GLKEffectPropertyFog : GLKEffectProperty

Overview

These properties are specifically designed to mimic the fog calculations provided by OpenGL ES 1.1.

When fog is enabled, the fog component is calculated and clamped to a range from 0.0 to 1.0. Then, the fog value is used as a blending factor between the computed fragment color and the fog color.

Topics

Enabling Fog

enabled

A Boolean value that indicates whether fog is applied to the fragment color.

Choosing the Fog Mode

mode

The algorithm used to compute the density of the fog applied to the fragment color.

Fog Properties

color

The color of the fog at maximum density.

density

The rate at which the fog exponent increases.

start

The minimum distance in eye coordinates before fog is applied to the fragment color.

end

The distance in eye coordinates where fog completely covers the color fragment.

Constants

GLKFogMode

A mode that describes how the fog component is calculated for the fragment.

Relationships

Inherits From

See Also

Rendering Effect Parameters

GLKEffectProperty

The abstract superclass for configuration information used in GLKit rendering effects.

Deprecated
GLKEffectPropertyLight

Lighting information for use in GLKit rendering effects.

Deprecated
GLKEffectPropertyTexture

Texture drawing parameters for use in GLKit rendering effects.

Deprecated
GLKEffectPropertyMaterial

Surface appearance properties for use in GLKit rendering effects.

Deprecated
GLKEffectPropertyTransform

Coordinate transform information for use in GLKit rendering effects.

Deprecated