Skip to content

Commit

Permalink
Luigi's Mansion: Fix on WebGPU
Browse files Browse the repository at this point in the history
Don't use CLR0 when we don't set up a vertex stream for it. We should add lighting eventually.
  • Loading branch information
magcius committed Nov 17, 2024
1 parent 23eb85b commit a50b8dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LuigisMansion/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ export function parse(buffer: ArrayBufferSlice, name: string): BIN {
const texGens = [texGen0];

const lightChannel0: GX_Material.LightChannelControl = {
alphaChannel: { lightingEnabled: false, ambColorSource: GX.ColorSrc.VTX, matColorSource: GX.ColorSrc.VTX, litMask: 0, diffuseFunction: GX.DiffuseFunction.NONE, attenuationFunction: GX.AttenuationFunction.NONE },
colorChannel: { lightingEnabled: false, ambColorSource: GX.ColorSrc.VTX, matColorSource: GX.ColorSrc.VTX, litMask: 0, diffuseFunction: GX.DiffuseFunction.NONE, attenuationFunction: GX.AttenuationFunction.NONE },
alphaChannel: { lightingEnabled: false, ambColorSource: GX.ColorSrc.REG, matColorSource: GX.ColorSrc.REG, litMask: 0, diffuseFunction: GX.DiffuseFunction.NONE, attenuationFunction: GX.AttenuationFunction.NONE },
colorChannel: { lightingEnabled: false, ambColorSource: GX.ColorSrc.REG, matColorSource: GX.ColorSrc.REG, litMask: 0, diffuseFunction: GX.DiffuseFunction.NONE, attenuationFunction: GX.AttenuationFunction.NONE },
};

const lightChannels: GX_Material.LightChannelControl[] = [lightChannel0, lightChannel0];
Expand Down

0 comments on commit a50b8dd

Please sign in to comment.