gDPSetTextureDetail [Macro]

Function

gDPSetTextureDetail

Sets detail texture settings

Syntax

#include <ultra64.h>        /* gbi.h */
gDPSetTextureDetail(Gfx *gdl, u32 type)
gsDPSetTextureDetail(         u32 type)

Arguments

gdl
Display list pointer
type
Texture sampling type:
G_TD_CLAMP (Clamp)
G_TD_SHARPEN (Sharpen)
G_TD_DETAIL (Detail)

Description

Sets the texture sampling type to use when detail texture is enabled. These texture sampling types are used by the RDP when LOD is less than 1.0 and during enlargement processes.

The different texture sampling types are explained below:

G_TD_CLAMP
Uses and clamps the tile with the highest-level of detail from among a number of texture tiles.
G_TD_SHARPEN
Estimates the texture from the two tiles with the highest-level of detail. This can also create sharp textures when enlarging.
G_TD_DETAIL
Adds detail when the highest level of detail starts to become blurry as it is enlarged. The color combiner (CC) primitive color's minimum LOD limit value restricts the detail texture being used.

Detail texture is enabled/disabled by gDPSetTextureLOD. For more information, see Sections 12.4.6 "Texture Sampling Mode" and 13.7.5.1 "Detail Texture" in the N64 Programming Manual, and gDPSetTextureLOD.

See Also

gDPSetPrimColor, gDPSetTextureLOD, gDPSetTextureLUT, and gDPSetTexturePersp

Revision History

02/01/99   Completely rewritten