IrrSetFog

section index

## NAME

IrrSetFog - Sets the fog mode.

## SYNOPSIS

IrrSetFog(alpha.l, red.l, green.l, blue.l , fogType.l, fogStart.f, fogEnd.f, fogDensity.f, [pixelFog.l,[rangeFog.l ]])

## INPUTS

fogType.l | - | Set this to #True for linear fog, otherwise exponential fog is applied
fogStart.f | - | Only used in linear fog mode (linearFog=true). Specifies where fog starts.
fogEnd.f | - | Only used in linear fog mode (linearFog=true). Specifies where fog ends.
fogDensity.f | - | Only used in expotential fog mode (linearFog=false). Must be a value between 0 and 1.
pixelFog.l | - | Set this to #False for vertex fog, and #True if you want pixel fog. compute the fog, not the z coordinate. This is better, but slower. This is only available with D3D and vertex fog.

## FUNCTION

Sets the fog mode. These are global values attached to each 3d object rendered, which has the fog flag enabled in its material.

## RESULT

Nothing

## EXAMPLE

       IrrSetFog(255,255,255,255,100,500,0.5 )