Removed unneeded code

feature/threejs-update
Robin Hawkes 2016-09-08 14:17:15 +01:00
rodzic 9ee3823e2d
commit ff8035ad5c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 1EC4C2D6765FA8CF
1 zmienionych plików z 0 dodań i 14 usunięć

Wyświetl plik

@ -272,17 +272,6 @@ class PolygonLayer extends Layer {
static SetMesh(attributes, attributeLengths, flat, style, options, skybox) {
var geometry = new THREE.BufferGeometry();
// TODO: Remove
// // itemSize = 3 because there are 3 values (components) per vertex
// geometry.addAttribute('position', new THREE.BufferAttribute(attributes.positions, 3));
// geometry.addAttribute('normal', new THREE.BufferAttribute(attributes.normals, 3));
// geometry.addAttribute('color', new THREE.BufferAttribute(attributes.colours, 3));
// TODO: Remove
// if (attributes.pickingIds) {
// geometry.addAttribute('pickingId', new THREE.BufferAttribute(attributes.pickingIds, 1));
// }
for (var key in attributes) {
geometry.addAttribute(key.slice(0, -1), new THREE.BufferAttribute(attributes[key], attributeLengths[key]));
}
@ -336,9 +325,6 @@ class PolygonLayer extends Layer {
material.side = THREE.BackSide;
var pickingMesh = new THREE.Mesh(geometry, material);
// TODO: Move this to after whatever calls PolygonLayer.SetMesh()
// this._pickingMesh.add(pickingMesh);
}
return Promise.resolve({