Skip to content

Commit a50b8dd

Browse files
committed
Luigi's Mansion: Fix on WebGPU
Don't use CLR0 when we don't set up a vertex stream for it. We should add lighting eventually.
1 parent 23eb85b commit a50b8dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LuigisMansion/bin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ export function parse(buffer: ArrayBufferSlice, name: string): BIN {
180180
const texGens = [texGen0];
181181

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

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

0 commit comments

Comments
 (0)