Enables/disables LOD (MIP-map) textures
#include <ultra64.h> /* gbi.h */
gDPSetTextureLOD(Gfx *gdl, u32 mode)
gsDPSetTextureLOD( u32 mode)
- Display list pointer.
- Texture mode.
G_TL_TILE(LOD tile selection OFF)
G_TL_LOD(LOD tile selection ON)
Enables/disables texture sampling of LOD (MIP-map) textures. The texture modes are explained below:
For details, please see Sections 12.4.6 "Texture Sample Mode," 13.7.2 "LOD Disable" and 13.7.3 "LOD Enable" in the N64 Programming Manual.
- Turns LOD tile selection OFF.
In 1-cycle mode, the tile selected with gSPTexture is used for texture processing. In 2-cycle mode, the color combiner (CC) receives texels from both the tile selected with gSPTexture and from that tile + 1. This pair of texture tiles can be used as a dual-texture tile.
- Selects a pair of tiles from a series of texture tiles.
LOD determines which pair of tiles will be selected. The CC uses texels sampled from this pair of tiles to perform MIP-mapping. Linear interpolation is performed on the two texel samples using the LOD factor in order to create the final MIP-mapped texel.
gDPSetCombineMode, gDPSetTextureDetail, gDPSetTextureLUT, gDPSetTexturePersp, and gSPTexture
02/01/99 Completely rewritten