Explorar o código

Editor: Disabled depthTest to selectionBox.

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
25538126ab
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 );