外挂中常见,z-index = 0;就是没有深度的意思;

比如:

原样

threejs 不管物体是不是在里面都能看见它(去掉深度)threejs 不管物体是不是在里面都能看见它(去掉深度)

threejs 不管物体是不是在里面都能看见它(去掉深度)

去掉深度检测:

 

threejs 不管物体是不是在里面都能看见它(去掉深度)threejs 不管物体是不是在里面都能看见它(去掉深度)

 

设置材质如下:

THREE.MeshPhongMaterial({
    color: colorMaterial,
    opacity: 0.4,
    transparent: false,
    vertexColors: THREE.NoColors,
    side: THREE.DoubleSide,
    clipIntersection: true,
    clippingPlanes: Lark_ClipPlanes,
    depthTest:false
});

相关文章:

  • 2021-05-07
  • 2021-06-23
  • 2021-06-06
  • 2022-12-23
  • 2022-01-12
  • 2021-10-23
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2021-09-19
  • 2021-10-09
  • 2021-11-06
  • 2022-12-23
  • 2021-08-21
  • 2021-06-20
  • 2021-05-18
相关资源
相似解决方案