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