kopia lustrzana https://github.com/OpenDroneMap/WebODM
Revert bump mapping
rodzic
87840769e6
commit
3394365d44
|
@ -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 ];
|
||||
|
|
Ładowanie…
Reference in New Issue