浏览代码

Hacky fix.

master
Pete Shadbolt 8 年前
父节点
当前提交
9ab5509e73
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -0
      abp/static/scripts/main.js
  2. +0
    -2
      abp/static/scripts/materials.js

+ 2
- 0
abp/static/scripts/main.js 查看文件

@@ -4,5 +4,7 @@ window.onload = function() {
gui.prepare(); gui.prepare();
mouse.prepare(); mouse.prepare();
editor.prepare(); editor.prepare();
gui.scene.children[0].renderOrder = -1000;
console.log(gui.scene.children[0].renderOrder = -1000);
gui.loop(); gui.loop();
}; };

+ 0
- 2
abp/static/scripts/materials.js 查看文件

@@ -22,10 +22,8 @@ materials.prepare = function() {
transparent: true, transparent: true,
vertexColors: THREE.VertexColors vertexColors: THREE.VertexColors
}); });
materials.edge.depthTest = false;
}; };


console.log("what");


materials.makeCurve = function(a, b) { materials.makeCurve = function(a, b) {
var length = new THREE.Vector3().subVectors(a, b).length(); var length = new THREE.Vector3().subVectors(a, b).length();


正在加载...
取消
保存