소스 검색

Editor: Disabled depthTest to selectionBox.

Mr.doob 12 년 전
부모
커밋
25538126ab
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      editor/js/ui/Viewport.js

+ 2 - 0
editor/js/ui/Viewport.js

@@ -29,6 +29,8 @@ var Viewport = function ( signals ) {
 
 	var selectionBox = new THREE.BoxHelper();
 	selectionBox.material.color.setHex( 0xffff00 );
+	selectionBox.material.depthTest = false;
+	selectionBox.material.transparent = true;
 	selectionBox.visible = false;
 	sceneHelpers.add( selectionBox );