瀏覽代碼

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 );