|
@@ -68,10 +68,10 @@ class renderModel {
|
|
|
this.sharedOutlinePass.edgeStrength = 5.0; // 边框的亮度
|
|
|
this.sharedOutlinePass.edgeGlow = 0.3; // 光晕[0,1]
|
|
|
this.sharedOutlinePass.edgeThickness = 1.0; // 边框宽度
|
|
|
- this.sharedOutlinePass.pulsePeriod = 3; // 呼吸闪烁的速度
|
|
|
- this.sharedOutlinePass.visibleEdgeColor.set(0x00ff00); // 呼吸显示的颜色
|
|
|
- this.sharedOutlinePass.hiddenEdgeColor.set(0x000000); // 呼吸消失的颜色
|
|
|
- this.sharedOutlinePass.clear = true;
|
|
|
+ // this.sharedOutlinePass.pulsePeriod = 3; // 呼吸闪烁的速度
|
|
|
+ // this.sharedOutlinePass.visibleEdgeColor.set(0x00ff00); // 呼吸显示的颜色
|
|
|
+ // this.sharedOutlinePass.hiddenEdgeColor.set(0x000000); // 呼吸消失的颜色
|
|
|
+ // this.sharedOutlinePass.clear = true;
|
|
|
this.sharedComposer.addPass(this.sharedOutlinePass);
|
|
|
|
|
|
// 创建共享的UnrealBloomPass
|
|
@@ -278,9 +278,9 @@ class renderModel {
|
|
|
TWEEN.update();
|
|
|
|
|
|
// 使用共享的composer进行后处理渲染
|
|
|
- if (this.isComposerInitialized && this.sharedComposer) {
|
|
|
- this.sharedComposer.render();
|
|
|
- }
|
|
|
+ // if (this.isComposerInitialized && this.sharedComposer) {
|
|
|
+ // this.sharedComposer.render();
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
// 使用动画器不断更新场景
|
|
@@ -371,10 +371,10 @@ class renderModel {
|
|
|
child.material.emissive = child.material.color;
|
|
|
child.material.emissiveMap = child.material.map;
|
|
|
}
|
|
|
- console.log(child.name)
|
|
|
- if (["solar_cell097001", "solar_cell097002", "solar_cell097003", "solar_cell097004"].includes(child.name)) {
|
|
|
- selectedObjects.push(child);
|
|
|
- }
|
|
|
+ // console.log(child.name)
|
|
|
+ // if (["solar_cell097001", "solar_cell097002", "solar_cell097003", "solar_cell097004"].includes(child.name)) {
|
|
|
+ // selectedObjects.push(child);
|
|
|
+ // }
|
|
|
});
|
|
|
|
|
|
// 设置相机位置
|
|
@@ -386,9 +386,9 @@ class renderModel {
|
|
|
// 将模型添加到场景中去
|
|
|
this.scene.add(this.model);
|
|
|
// 高亮收集的对象
|
|
|
- if (selectedObjects.length > 0) {
|
|
|
- this.outlineObj(selectedObjects);
|
|
|
- }
|
|
|
+ // if (selectedObjects.length > 0) {
|
|
|
+ // this.outlineObj(selectedObjects);
|
|
|
+ // }
|
|
|
});
|
|
|
}
|
|
|
|