Skip to content

Commit

Permalink
Merge pull request #717 from themikelester/stb
Browse files Browse the repository at this point in the history
Cutscene (demo) support for Wind Waker
  • Loading branch information
themikelester authored Nov 21, 2024
2 parents 831ba43 + 29efd76 commit 6e3fb61
Show file tree
Hide file tree
Showing 13 changed files with 2,962 additions and 68 deletions.
1,939 changes: 1,939 additions & 0 deletions src/Common/JSYSTEM/JStudio.ts

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/ZeldaWindWaker/Grass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function checkGroundY(globals: dGlobals, roomIdx: number, pos: vec3) {
}

function setColorFromRoomNo(globals: dGlobals, materialParams: MaterialParams, roomNo: number): void {
colorCopy(materialParams.u_Color[ColorKind.C0], globals.roomStatus[roomNo].tevStr.colorC0);
colorCopy(materialParams.u_Color[ColorKind.C1], globals.roomStatus[roomNo].tevStr.colorK0);
colorCopy(materialParams.u_Color[ColorKind.C0], globals.roomCtrl.status[roomNo].tevStr.colorC0);
colorCopy(materialParams.u_Color[ColorKind.C1], globals.roomCtrl.status[roomNo].tevStr.colorK0);
}

function distanceCull(camPos: ReadonlyVec3, objPos: ReadonlyVec3, maxDist = 20000) {
Expand Down Expand Up @@ -397,7 +397,7 @@ export class FlowerPacket {
}

private drawRoom(globals: dGlobals, roomIdx: number, renderInstManager: GfxRenderInstManager, viewerInput: ViewerRenderInput): void {
if (!globals.roomStatus[roomIdx].visible)
if (!globals.roomCtrl.status[roomIdx].visible)
return;

if (this.rooms[roomIdx].length === 0)
Expand Down Expand Up @@ -719,7 +719,7 @@ export class TreePacket {
}

private drawRoom(globals: dGlobals, roomIdx: number, renderInstManager: GfxRenderInstManager, viewerInput: ViewerRenderInput, device: GfxDevice) {
if (!globals.roomStatus[roomIdx].visible)
if (!globals.roomCtrl.status[roomIdx].visible)
return;

const room = this.rooms[roomIdx];
Expand Down Expand Up @@ -1016,7 +1016,7 @@ export class GrassPacket {
}

private drawRoom(globals: dGlobals, roomIdx: number, renderInstManager: GfxRenderInstManager, viewerInput: ViewerRenderInput): void {
if (!globals.roomStatus[roomIdx].visible)
if (!globals.roomCtrl.status[roomIdx].visible)
return;

const room = this.rooms[roomIdx];
Expand Down
209 changes: 196 additions & 13 deletions src/ZeldaWindWaker/Main.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 6e3fb61

Please sign in to comment.