瀏覽代碼

We finally have clean edge rendering :rage4:

master
Pete Shadbolt 8 年之前
父節點
當前提交
e64bf3bf93
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      abp/static/scripts/materials.js

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

@@ -14,6 +14,7 @@ materials.prepare = function() {
transparent: false,
linewidth: 3
});
materials.edge.depthTest = false;
materials.qubit = new THREE.PointsMaterial({
size: 0.3,
map: ballSprite,
@@ -21,8 +22,11 @@ materials.prepare = function() {
transparent: true,
vertexColors: THREE.VertexColors
});
materials.edge.depthTest = false;
};

console.log("what");

materials.makeCurve = function(a, b) {
var length = new THREE.Vector3().subVectors(a, b).length();
var bend = new THREE.Vector3(length / curveProperties.curvature, length / curveProperties.curvature, 0);


Loading…
取消
儲存