mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-26 17:52:03 -04:00
Copy dolphin/gx progress from TP
This commit is contained in:
@@ -502,7 +502,7 @@ void J3DGDSetFog(GXFogType type, f32 startZ, f32 endZ, f32 nearZ, f32 farZ, GXCo
|
||||
void J3DGDSetFogRangeAdj(u8 enabled, u16 center, GXFogAdjTable* pFogAdjTable) {
|
||||
if (enabled) {
|
||||
for (s32 i = 0; i < 10; i += 2) {
|
||||
J3DGDWriteBPCmd((0xe9 + i / 2) << 24 | pFogAdjTable->r[i + 1] << 12 | pFogAdjTable->r[i] << 0);
|
||||
J3DGDWriteBPCmd((0xe9 + i / 2) << 24 | pFogAdjTable->fogVals[i + 1] << 12 | pFogAdjTable->fogVals[i] << 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ void J3DSys::setTexCacheRegion(GXTexCacheSize size) {
|
||||
|
||||
/* 802D8EE0-802D956C .text drawInit__6J3DSysFv */
|
||||
void J3DSys::drawInit() {
|
||||
GXSetMisc(2, 0);
|
||||
GXSetMisc(GX_MT_DL_SAVE_CONTEXT, 0);
|
||||
GXInvalidateVtxCache();
|
||||
GXSetCurrentMtx(GX_PNMTX0);
|
||||
GXSetCullMode(GX_CULL_BACK);
|
||||
|
||||
Reference in New Issue
Block a user