From e64bf3bf93c4b542b6bbc969daf8f3aa013c5a04 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 12 Dec 2016 08:06:24 -0800 Subject: [PATCH] We finally have clean edge rendering :rage4: --- abp/static/scripts/materials.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/abp/static/scripts/materials.js b/abp/static/scripts/materials.js index b28d3fc..68caffa 100644 --- a/abp/static/scripts/materials.js +++ b/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);