修复导览三维模型材质反光过强
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
cxk
2026-07-20 18:18:19 +08:00
parent 3cc0336806
commit 65ba9720f8
3 changed files with 157 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ import {
type PoiDomLabelAnchor,
type PoiDomLabelKind
} from './poiDomLabels'
import { applyGuideModelMaterialPolicy } from './modelMaterialPolicy'
type ViewMode = 'overview' | 'floor' | 'multi'
type CameraPreset = 'top' | 'oblique'
@@ -2923,6 +2924,8 @@ const loadModelWithFallback = async (
}
const prepareModel = (model: THREE.Object3D) => {
applyGuideModelMaterialPolicy(model)
model.traverse((child) => {
if (child instanceof THREE.Mesh) {
child.castShadow = false