|
@@ -57,7 +57,6 @@
|
|
scene.background = new THREE.CubeTextureLoader()
|
|
scene.background = new THREE.CubeTextureLoader()
|
|
.setPath( 'textures/cube/Park3Med/' )
|
|
.setPath( 'textures/cube/Park3Med/' )
|
|
.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
|
|
.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
|
|
- scene.background.colorSpace = THREE.SRGBColorSpace;
|
|
|
|
|
|
|
|
const geometry = new THREE.SphereGeometry( 100, 32, 16 );
|
|
const geometry = new THREE.SphereGeometry( 100, 32, 16 );
|
|
|
|
|
|
@@ -65,7 +64,6 @@
|
|
.setPath( 'textures/cube/Park3Med/' )
|
|
.setPath( 'textures/cube/Park3Med/' )
|
|
.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
|
|
.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
|
|
textureCube.mapping = THREE.CubeRefractionMapping;
|
|
textureCube.mapping = THREE.CubeRefractionMapping;
|
|
- textureCube.colorSpace = THREE.SRGBColorSpace;
|
|
|
|
|
|
|
|
const material = new THREE.MeshBasicMaterial( { color: 0xffffff, envMap: textureCube, refractionRatio: 0.95 } );
|
|
const material = new THREE.MeshBasicMaterial( { color: 0xffffff, envMap: textureCube, refractionRatio: 0.95 } );
|
|
|
|
|