Removed unneeded code

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

Wyświetl plik

@ -269,78 +269,6 @@ class PolygonLayer extends Layer {
this._projectedCoordinates = null;
}
// Create and store mesh from buffer attributes
//
// This is only called if the layer is controlling its own output
//
// TODO: Dedupe with code used by workers, perhaps via a static method
// _setMesh(attributes) {
// var geometry = new THREE.BufferGeometry();
// // itemSize = 3 because there are 3 values (components) per vertex
// geometry.addAttribute('position', new THREE.BufferAttribute(attributes.vertices, 3));
// geometry.addAttribute('normal', new THREE.BufferAttribute(attributes.normals, 3));
// geometry.addAttribute('color', new THREE.BufferAttribute(attributes.colours, 3));
// if (attributes.pickingIds) {
// geometry.addAttribute('pickingId', new THREE.BufferAttribute(attributes.pickingIds, 1));
// }
// geometry.computeBoundingBox();
// var material;
// if (this._options.material && this._options.material instanceof THREE.Material) {
// material = this._options.material;
// } else if (!this._world._environment._skybox) {
// material = new THREE.MeshPhongMaterial({
// vertexColors: THREE.VertexColors,
// side: THREE.BackSide,
// transparent: this._options.style.transparent,
// opacity: this._options.style.opacity,
// blending: this._options.style.blending
// });
// } else {
// material = new THREE.MeshStandardMaterial({
// vertexColors: THREE.VertexColors,
// side: THREE.BackSide,
// transparent: this._options.style.transparent,
// opacity: this._options.style.opacity,
// blending: this._options.style.blending
// });
// material.roughness = 1;
// material.metalness = 0.1;
// material.envMapIntensity = 3;
// material.envMap = this._world._environment._skybox.getRenderTarget();
// }
// var mesh;
// // Pass mesh through callback, if defined
// if (typeof this._options.onMesh === 'function') {
// mesh = this._options.onMesh(geometry, material);
// } else {
// mesh = new THREE.Mesh(geometry, material);
// mesh.castShadow = true;
// mesh.receiveShadow = true;
// }
// if (this.isFlat()) {
// material.depthWrite = false;
// mesh.renderOrder = 1;
// }
// if (this._options.interactive && this._pickingMesh) {
// material = new PickingMaterial();
// material.side = THREE.BackSide;
// var pickingMesh = new THREE.Mesh(geometry, material);
// this._pickingMesh.add(pickingMesh);
// }
// this._mesh = mesh;
// }
static SetMesh(attributes, attributeLengths, flat, style, options, skybox) {
var geometry = new THREE.BufferGeometry();