freed minoes as instanced mesh
This commit is contained in:
		| @ -54,6 +54,9 @@ export class TetraGUI extends GUI { | |||||||
|                         scene.vortex.darkMoveForward = 0.012 |                         scene.vortex.darkMoveForward = 0.012 | ||||||
|                         scene.vortex.colorFullTextureRotation = 0.006 |                         scene.vortex.colorFullTextureRotation = 0.006 | ||||||
|                         scene.vortex.colorFullMoveForward = 0.016 |                         scene.vortex.colorFullMoveForward = 0.016 | ||||||
|  |  | ||||||
|  |                         scene.ambientLight.intensity = .5 | ||||||
|  |                         scene.directionalLight.intensity = 6 | ||||||
|                     } |                     } | ||||||
|                 break |                 break | ||||||
|                 case "Espace": |                 case "Espace": | ||||||
|  | |||||||
| @ -12,7 +12,7 @@ export class TetraScene extends THREE.Scene { | |||||||
|         this.vortex = new Vortex(loadingManager) |         this.vortex = new Vortex(loadingManager) | ||||||
|         this.add(this.vortex) |         this.add(this.vortex) | ||||||
|          |          | ||||||
|         this.ambientLight = new THREE.AmbientLight(0xffffff, .5) |         this.ambientLight = new THREE.AmbientLight(0xffffff, .3) | ||||||
|         this.add(this.ambientLight) |         this.add(this.ambientLight) | ||||||
|          |          | ||||||
|         this.directionalLight = new THREE.DirectionalLight(0xffffff, 6) |         this.directionalLight = new THREE.DirectionalLight(0xffffff, 6) | ||||||
|  | |||||||
| @ -8,10 +8,10 @@ export class Vortex extends THREE.Group { | |||||||
|         this.globalRotation = 0.028 |         this.globalRotation = 0.028 | ||||||
|          |          | ||||||
|         this.darkTextureRotation = 0.006 |         this.darkTextureRotation = 0.006 | ||||||
|         this.darkMoveForward = 0.012 |         this.darkMoveForward = 0.011 | ||||||
|          |          | ||||||
|         this.colorFullTextureRotation = 0.006 |         this.colorFullTextureRotation = 0.006 | ||||||
|         this.colorFullMoveForward = 0.016 |         this.colorFullMoveForward = 0.09 | ||||||
|  |  | ||||||
|         const commonCylinderGeometry = new THREE.CylinderGeometry(35, 35, 500, 12, 1, true) |         const commonCylinderGeometry = new THREE.CylinderGeometry(35, 35, 500, 12, 1, true) | ||||||
|  |  | ||||||
| @ -21,7 +21,7 @@ export class Vortex extends THREE.Group { | |||||||
|             commonCylinderGeometry, |             commonCylinderGeometry, | ||||||
|             new THREE.MeshLambertMaterial({ |             new THREE.MeshLambertMaterial({ | ||||||
|                 side: THREE.BackSide, |                 side: THREE.BackSide, | ||||||
|                 map: new THREE.TextureLoader(loadingManager).load("./images/plasma2.jpg", (texture) => { |                 map: new THREE.TextureLoader(loadingManager).load("./images/plasma.jpg", (texture) => { | ||||||
|                     texture.wrapS = THREE.RepeatWrapping |                     texture.wrapS = THREE.RepeatWrapping | ||||||
|                     texture.wrapT = THREE.MirroredRepeatWrapping |                     texture.wrapT = THREE.MirroredRepeatWrapping | ||||||
|                     texture.repeat.set(2, 1) |                     texture.repeat.set(2, 1) | ||||||
| @ -36,7 +36,7 @@ export class Vortex extends THREE.Group { | |||||||
|             commonCylinderGeometry, |             commonCylinderGeometry, | ||||||
|             new THREE.MeshBasicMaterial({ |             new THREE.MeshBasicMaterial({ | ||||||
|                 side: THREE.BackSide, |                 side: THREE.BackSide, | ||||||
|                 map: new THREE.TextureLoader(loadingManager).load("./images/plasma.jpg", (texture) => { |                 map: new THREE.TextureLoader(loadingManager).load("./images/plasma2.jpg", (texture) => { | ||||||
|                     texture.wrapS = THREE.RepeatWrapping |                     texture.wrapS = THREE.RepeatWrapping | ||||||
|                     texture.wrapT = THREE.MirroredRepeatWrapping |                     texture.wrapT = THREE.MirroredRepeatWrapping | ||||||
|                     texture.repeat.set(1, 1) |                     texture.repeat.set(1, 1) | ||||||
|  | |||||||
| @ -75,10 +75,10 @@ let minoMaterial = new THREE.MeshStandardMaterial({ | |||||||
|     envMap: environnement, |     envMap: environnement, | ||||||
|     side: THREE.DoubleSide, |     side: THREE.DoubleSide, | ||||||
|     transparent: true, |     transparent: true, | ||||||
|     opacity: 0.8, |     opacity: 0.7, | ||||||
|     //reflectivity: 0.8, |     //reflectivity: 0.8, | ||||||
|     roughness: 0.1, |     roughness: 0.09, | ||||||
|     metalness: 0.9, |     metalness: 0.98, | ||||||
|     //attenuationDistance: 0.5, |     //attenuationDistance: 0.5, | ||||||
|     //ior: 2, |     //ior: 2, | ||||||
|     //sheen: 0, |     //sheen: 0, | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user