From a8c4dc973b1e7c43e7eef719132fc7e274ae2147 Mon Sep 17 00:00:00 2001 From: Stephen Date: Mon, 2 Nov 2020 14:36:15 +0100 Subject: [PATCH] Removed duplicate static function in PointCloudMaterial.js --- src/materials/PointCloudMaterial.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/materials/PointCloudMaterial.js b/src/materials/PointCloudMaterial.js index f9b4c361..3de4a005 100644 --- a/src/materials/PointCloudMaterial.js +++ b/src/materials/PointCloudMaterial.js @@ -1073,17 +1073,6 @@ export class PointCloudMaterial extends THREE.RawShaderMaterial { return texture; } - static generateMatcapTexture (matcap) { - var url = new URL(Potree.resourcePath + "/textures/matcap/" + matcap).href; - let texture = new THREE.TextureLoader().load( url ); - texture.magFilter = texture.minFilter = THREE.LinearFilter; - texture.needsUpdate = true; - // PotreeConverter_1.6_2018_07_29_windows_x64\PotreeConverter.exe autzen_xyzrgbXYZ_ascii.xyz -f xyzrgbXYZ -a RGB NORMAL -o autzen_xyzrgbXYZ_ascii_a -p index --overwrite - // Switch matcap texture on the fly : viewer.scene.pointclouds[0].material.matcap = 'matcap1.jpg'; - // For non power of 2, use LinearFilter and dont generate mipmaps, For power of 2, use NearestFilter and generate mipmaps : matcap2.jpg 1 2 8 11 12 13 - return texture; - } - disableEvents(){ if(this._hiddenListeners === undefined){ this._hiddenListeners = this._listeners;