benilla-re systems structs docs

s_minimapFrame

global · ui

Address
0xbdcbb8 · 4 bytes, up to 0xbdcbbb
Type
void *
Meaning
Points to the minimap frame object, whose alpha byte at +0xc8 colours the tiles
Confidence
verified, proof one
Finding
minimap/draw#composite-states

Finding: Composite states in minimap: draw

The composite resets every render state, then turns off culling, lighting, fog, depth test and depth write, and sets blend mode 1. Mode 1 draws without blending and with the alpha reference 224, so a fragment is written whole when its alpha is at least 224 and not at all otherwise. The vertex colour is white with the frame's alpha, and stage 0 combines it with the texel by modulation on colour and alpha. The colour write mask is the caller's, because the reset leaves it unchanged.

The derivation is in the doc.