kopia lustrzana https://github.com/robhawkes/vizicities
Removed unneeded code
rodzic
86fc1f6d5d
commit
9ee3823e2d
|
@ -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();
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue