From 8c65343244b45c9ec11ce81859019b7100456aef Mon Sep 17 00:00:00 2001 From: Mike Lester Date: Fri, 3 Jan 2025 11:07:39 -0700 Subject: [PATCH] Wind Waker: Remove old `patchResData` indirect particles hack This TEV patching is now done in a more proper place, inside the the simple particle callback --- src/ZeldaWindWaker/d_particle.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/ZeldaWindWaker/d_particle.ts b/src/ZeldaWindWaker/d_particle.ts index c6436a94c..4dc1ead63 100644 --- a/src/ZeldaWindWaker/d_particle.ts +++ b/src/ZeldaWindWaker/d_particle.ts @@ -158,19 +158,6 @@ export class dPa_control_c { return null; } - // TODO: Remove - private patchResData(globals: dGlobals, resData: JPAResourceData): void { - if (resData.resourceId & 0x4000) { - const m = resData.materialHelper.material; - m.tevStages[0].alphaInA = GX.CA.ZERO; - m.tevStages[0].alphaInB = GX.CA.ZERO; - m.tevStages[0].alphaInC = GX.CA.ZERO; - m.tevStages[0].alphaInD = GX.CA.A0; - - resData.materialHelper.materialInvalidated(); - } - } - private getResData(globals: dGlobals, userIndex: number): JPAResourceData | null { if (!this.resourceDatas.has(userIndex)) { const data = this.findResData(userIndex); @@ -178,7 +165,6 @@ export class dPa_control_c { const [jpacData, jpaResRaw] = data; const device = globals.modelCache.device, cache = globals.modelCache.cache; const resData = new JPAResourceData(device, cache, jpacData, jpaResRaw); - this.patchResData(globals, resData); this.resourceDatas.set(userIndex, resData); } else { return null;