fix(stage-ui-three): removed duplicated IBL inject

This commit is contained in:
Lilia-Chen
2026-03-26 14:23:55 +00:00
parent 89912c96e7
commit 1037614a89
@@ -748,8 +748,10 @@ async function loadModel() {
}
else if (mat?.isMToonMaterial) {
// --- MToon material ---
// MToon is also shader-based and should receive the custom IBL injection.
configureInjectedShaderMaterial(mat)
// NOTICE: three-vrm MToon already consumes scene LightProbe irradiance.
// Keep it on a single IBL path to avoid double-applying diffuse IBL.
if ('toneMapped' in mat)
mat.toneMapped = false
}
else if (isShaderMat(mat)) {
// --- Shader material, further IBL injection needed ---