fl-web-component 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ import { TextGeometry } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
|
4
4
|
import helvetikerFont from 'three/examples/fonts/helvetiker_regular.typeface.json';
|
|
5
5
|
import { MeshLineGeometry, MeshLineMaterial } from 'meshline';
|
|
6
6
|
import StreamLoaderParserWorker from '../../packages/utils/StreamLoaderParser.worker.js';
|
|
7
|
-
import { FeatureExtractor } from './threejs/feature-extractor.js'
|
|
7
|
+
import { FeatureExtractor } from './threejs/feature-extractor.js';
|
|
8
8
|
export const GEOM_TYPES = {
|
|
9
9
|
geom_3d: 53248,
|
|
10
10
|
geom_3d_text: 53249,
|
|
@@ -986,12 +986,12 @@ function draw3Dmodel(
|
|
|
986
986
|
// 仅文字模型使用实例颜色,避免影响普通模型原有的材质颜色。
|
|
987
987
|
vertexColors: isTextType(type),
|
|
988
988
|
// side: THREE.DoubleSide,
|
|
989
|
-
// transparent: true,
|
|
990
|
-
// forceSinglePass: true,
|
|
991
989
|
side: THREE.DoubleSide,
|
|
992
|
-
transparent:
|
|
990
|
+
transparent: isTransparent,
|
|
993
991
|
opacity: finalOpacity,
|
|
994
|
-
|
|
992
|
+
depthTest: !isTransparent,
|
|
993
|
+
depthWrite: !isTransparent,
|
|
994
|
+
depthFunc: THREE.LessEqualDepth,
|
|
995
995
|
forceSinglePass: true,
|
|
996
996
|
};
|
|
997
997
|
|
|
@@ -1087,7 +1087,6 @@ function draw3Dmodel(
|
|
|
1087
1087
|
// 在这里可以先预算好 比较轻量的特征(几何中心、包围球、质心、小几何的边)
|
|
1088
1088
|
FeatureExtractor.attach(geometry);
|
|
1089
1089
|
mesh = new THREE.InstancedMesh(geometry, material, instanceCount);
|
|
1090
|
-
|
|
1091
1090
|
|
|
1092
1091
|
mesh.count = activeInstanceCount;
|
|
1093
1092
|
const { visible, sourceVisible } = prop;
|