修复导出的缩略图中带有光源的问题

This commit is contained in:
2025-06-12 11:45:45 +08:00
parent 7484cc6c3c
commit 0cbef7678d
5 changed files with 22 additions and 7 deletions

View File

@@ -36,10 +36,11 @@ export class MaterialRenderer
var ambient = new AmbientLight();
this.scene.add(ambient);
//Pontual light
var point = new PointLight();
point.position.set(-0.5, 1, 1.5);
this.scene.add(point);
// 这个点光源会导致生成的缩略图上有一个高光
// //Pontual light
// var point = new PointLight();
// point.position.set(-0.5, 1, 1.5);
// this.scene.add(point);
}
//Set render size