Revert bump mapping

pull/1271/head
Piero Toffanin 2022-10-28 00:36:58 -04:00
rodzic 87840769e6
commit 3394365d44
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -373,7 +373,7 @@ THREE.MTLLoader.MaterialCreator.prototype = {
// Diffuse texture map // Diffuse texture map
setMapForType( "map", value ); setMapForType( "map", value );
setMapForType( "bumpMap", "-bm 0.025 " + value); // setMapForType( "bumpMap", "-bm 0.025 " + value);
break; break;
@ -459,13 +459,13 @@ THREE.MTLLoader.MaterialCreator.prototype = {
} }
const loader = new THREE.CubeTextureLoader(); // const loader = new THREE.CubeTextureLoader();
loader.setPath( "/static/app/js/vendor/potree/envmaps/" ); // loader.setPath( "/static/app/js/vendor/potree/envmaps/" );
textureCube = loader.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] ); // textureCube = loader.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
textureCube.encoding = THREE.sRGBEncoding; // textureCube.encoding = THREE.sRGBEncoding;
params.envMap = textureCube; // params.envMap = textureCube;
this.materials[ materialName ] = new THREE.MeshStandardMaterial( params ); this.materials[ materialName ] = new THREE.MeshStandardMaterial( params );
return this.materials[ materialName ]; return this.materials[ materialName ];