Gfx GX Fn GXInitLightAttnA - wowjinxy/libPorpoise GitHub Wiki
GXInitLightAttnA
- Category:
Lighting
- Matrix Status:
Implemented
- Matrix Notes: Verified SDK-parity write scope: updates only angular attenuation coefficients (
a0..a2) and leaves distance terms unchanged.
- Matrix Link: Gfx-GX-API-Matrix
Official SDK (Reference)
- Manual root:
reference/rvlsdk/man/en_US/gx
- Primary SDK source area:
demos/PikminDemo/src/gx (GC-style Dolphin GX source)
- Notes:
libPorpoise Implementation
- Runtime implementation area:
src/gx
- Public API surface:
include/dolphin/gx
- Notes:
SDK vs Porpoise Diff
- Signature parity:
- Behavioral parity:
-
Known divergence:
Validation Checklist
Working Notes
- Docs checked against
reference/man/gfx/gx/Lighting/GXInitLightAttnA.html and SDK source in reference/gx/GXLight.c.
- SDK behavior:
- Writes only angle attenuation coefficients into the light object (
a[0..2]).
- Does not modify distance coefficients (
k[0..2]).
- Runtime behavior in
src/gx/pc_gx.c:
GXInitLightAttnA writes exactly a0/a1/a2 and leaves k0/k1/k2 untouched.
- Result:
- Function semantics match SDK for angular-only attenuation updates.