s_one
global · ffxeffects
- Address
0x86f268· 4 bytes, up to0x86f26b- Type
float- Meaning
- Holds 1.0, the flip offset of the full-screen quad
- Confidence
- verified, proof one
- Finding
- ffxeffects/targets#full-screen-quad
Finding: Full-screen quad in ffxeffects: render targets and the quad
0x6cd580 (ecx the destination {w, h}, edx the source's used {w, h}; the source's
allocated {w, h}, a position array, a UV array and a flag byte stacked; ret 0x10) writes a quad.
Positions are (x0, y0), (x0, y1), (x1, y1), (x1, y0), z 0: (0, 0) to (w, h) when the
device word +0x1fc is nonzero, else (0.5, −0.5) to (w + 0.5, h − 0.5); with the flag byte set
and gxMultisample 2 or more, y0 = h + 0.5 and y1 = 0.5. The UV pairs are (hu, V), (hu, hv),
(U, hv), (U, V), with U = (sw + 0.5)/allocW, V = (sh + 0.5)/allocH and hu, hv half a texel.
The derivation is in the doc.