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

外挂中常见,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
});