Skip to content

Commit

Permalink
Light d_a_title with an immediate light that should be set by the Opa…
Browse files Browse the repository at this point in the history
…2D draw list
  • Loading branch information
themikelester committed Dec 27, 2024
1 parent bb8a88e commit fa4b417
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ZeldaWindWaker/d_a.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import { ReadonlyMat4, ReadonlyVec3, mat4, quat, vec2, vec3 } from "gl-matrix";
import { TransparentBlack, colorCopy, colorFromRGBA8, colorNewCopy, colorNewFromRGBA8 } from "../Color.js";
import { TransparentBlack, White, colorCopy, colorFromRGBA8, colorNewCopy, colorNewFromRGBA8 } from "../Color.js";
import { J3DModelData, J3DModelInstance, buildEnvMtx } from "../Common/JSYSTEM/J3D/J3DGraphBase.js";
import { JointTransformInfo, LoopMode, TRK1, TTK1 } from "../Common/JSYSTEM/J3D/J3DLoader.js";
import { JPABaseEmitter, JPASetRMtxSTVecFromMtx } from "../Common/JSYSTEM/JPA.js";
Expand Down Expand Up @@ -5788,6 +5788,12 @@ class d_a_title extends fopAc_ac_c {
}

public override draw(globals: dGlobals, renderInstManager: GfxRenderInstManager, viewerInput: ViewerRenderInput): void {
// TODO: This should be a global immediate light set by the Opa2D draw list
const light = this.modelShip.getGXLightReference(0);
light.Position = [-35000.0, 0.0, -30000.0];
light.Direction = [0, 0, 0];
light.Color = White;

if (this.bpkShip.frameCtrl.getFrame() != 0.0) {
this.bckShip.entry(this.modelShip);
this.bpkShip.entry(this.modelShip);
Expand Down

0 comments on commit fa4b417

Please sign in to comment.