al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
gDPSetColorDitherFormat#include "gbi.h" gDPSetColorDither(Gfx *gdl, unsigned int type) gsDPSetColorDither(unsigned int type)Arguments
It sets (or disables) various types of color dithering. The RDP pipeline keeps individual color component values in 8-bit precision until the Memory Interface. The framebuffer can only accept color components in 5-bit precision when using 16-bits-per-pixel framebuffer format. Therefore, dithering may be necessary to remove Mach bands. Ordered dither has the effect of scattering the original complete information into a pixel neighborhood region. The video interface (VI) contains logic to gather or recover the original information within the pixel neighborhood during video display. This feature can be enabled or disabled by calling osViSetSpecialFeatures with either OS_VI_DITHER_FILTER_ON or OS_VI_DITHER_FILTER_OFF, respectively. This yields the best results in removing Mach bands in the low color resolution format (5/5/5 RGB). Your dither choices for this macro are:
gDPSetAlphaDither osViSetSpecialFeatures
|