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