Преглед на файлове

We finally have clean edge rendering :rage4:

master
Pete Shadbolt преди 9 години
родител
ревизия
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, transparent: false,
linewidth: 3 linewidth: 3
}); });
materials.edge.depthTest = false;
materials.qubit = new THREE.PointsMaterial({ materials.qubit = new THREE.PointsMaterial({
size: 0.3, size: 0.3,
map: ballSprite, map: ballSprite,
@@ -21,8 +22,11 @@ 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();
var bend = new THREE.Vector3(length / curveProperties.curvature, length / curveProperties.curvature, 0); var bend = new THREE.Vector3(length / curveProperties.curvature, length / curveProperties.curvature, 0);


Loading…
Отказ
Запис