Browse Source

Editor: Disabled depthTest to selectionBox.

Mr.doob 12 years ago
parent
commit
25538126ab
1 changed files with 2 additions and 0 deletions
  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();
 	var selectionBox = new THREE.BoxHelper();
 	selectionBox.material.color.setHex( 0xffff00 );
 	selectionBox.material.color.setHex( 0xffff00 );
+	selectionBox.material.depthTest = false;
+	selectionBox.material.transparent = true;
 	selectionBox.visible = false;
 	selectionBox.visible = false;
 	sceneHelpers.add( selectionBox );
 	sceneHelpers.add( selectionBox );