let edges = new THREE.EdgesGeometry( tWall.mWallMesh.geometry );
tWall.m_Outline = new THREE.LineSegments( edges, new THREE.LineBasicMaterial( { color: 0x4b96ff,depthTest:false,transparent:true } ) );
GlobalApi.scene3D.add( tWall.m_Outline );
这段代码展示了如何在THREE.js环境中,利用EdgesGeometry生成墙的边框,然后用LineSegments创建轮廓线,并应用LineBasicMaterial材料。最后将轮廓添加到场景3D中。
let edges = new THREE.EdgesGeometry( tWall.mWallMesh.geometry );
tWall.m_Outline = new THREE.LineSegments( edges, new THREE.LineBasicMaterial( { color: 0x4b96ff,depthTest:false,transparent:true } ) );
GlobalApi.scene3D.add( tWall.m_Outline );
717
2660
1726
1480

被折叠的 条评论
为什么被折叠?