mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
SetMask rode the minimap BLIP recipe (explicit second UV stream, uv1 = uv0), so the mask sampled at the base's texcoords - a SetTexCoord'd sprite made unit 1 sample that same sub-rect of the MASK image, showing a corner chunk of the shape instead of the shape. Retire that path: the path mask is now one extra unit in the texgen draw (MaskedRegionDrawImpl), its matrix built from the BASE region's own rect (SetTexCoordModifiesRect crop gate included) plus the base's SetRotation so a mask keeps following a rotated texture. The angle-0 matrix is exactly the old recipe's formula re-expressed through positions (see BuildMaskMatrix), so default 0..1-texcoord textures render identically; sprites become the fixed case, matching retail (SetMask ignores SetTexCoord). Side effect: SetMask and AddMaskTexture now compose (alpha intersection) instead of object masks winning; the path mask occupies one of the 7 units.