#include <revolution/gx.h>
void GXSetFogRangeAdj(
GXBool enable,
u16 center,
GXFogAdjTable* table );
enable |
Enables range adjustment when set to GX_ENABLE. |
center |
The applicable center for the range adjustment function. Normally matches the center of the viewport. |
table |
The table of range adjustment coefficients. Normally, the GXInitFogAdjTable function is used to initialize this. |
None.
This function allows enabling or disabling horizontal fog-range adjustment. This adjustment is a factor that is multiplied by the visual-space Z used for fog computation; it is based upon the X position of the pixels being rendered. The Y direction is not compensated for. This effectively increases the fog density at the edges of the screen, making for a more realistic fog effect. The adjustment is computed per quad (2x2 pixels), not per-pixel. The center of the viewport is specified using center. The range adjustment table is specified using table. The range adjust function is mirrored horizontally about the center.
GXInit disables range adjustment by default.
GXSetFog
GXInitFogAdjTableGXFogAdjTable
2006/03/01 Initial version.
CONFIDENTIAL