2014-05-24 9 views
1

을 무시하는 것,이 솔루션은 잘 작동 : 동일로 달성 될 수 있는지 궁금 Three.js - Geometry on top of another

mesh.renderDepth,하지만 지금까지 작동하지 못했습니다. material.depthTest 또는 depthWrite가 false로 설정되어있는 경우 renderDepth에만 효과가있다처럼 보인다, 그러나 깊이 순서는 동일한 개체 내에서 잘못된 물론이다 : R70의 경우 http://jsfiddle.net/SF9tX/22/

var cube = new THREE.Mesh(geometry, material); 
cube.renderDepth = 1; 
scene.add(cube); 

var cube2 = new THREE.Mesh(geometry, material); 
cube2.position.x = 1; 
cube2.renderDepth = 2; 
scene.add(cube2); 

// with any one of these lines the renderDepth has an effect 
// but then of course the depth test/write is wrong within the same object 
// material.depthWrite = false; 
// material.depthTest = false; 

답변