tweaks
This commit is contained in:
@@ -102,7 +102,7 @@ export class TetraScene extends THREE.Scene {
|
||||
break
|
||||
case "Space":
|
||||
this.ambientLight.intensity = 3
|
||||
this.directionalLight.intensity = 1
|
||||
this.directionalLight.intensity = 10
|
||||
this.directionalLight.position.set(2, 15, 20)
|
||||
this.music.src = "audio/benevolence.m4a"
|
||||
this.background = new THREE.Color(0x000000)
|
||||
|
||||
@@ -93,7 +93,7 @@ export class InstancedMino extends THREE.InstancedMesh {
|
||||
color: COLORS.RETRO,
|
||||
map: texture,
|
||||
bumpMap: texture,
|
||||
bumpScale: 1.5,
|
||||
bumpScale: 5,
|
||||
envMap: environment,
|
||||
envMapIntensity: 5,
|
||||
roughness: 0.03,
|
||||
@@ -109,7 +109,7 @@ export class InstancedMino extends THREE.InstancedMesh {
|
||||
color: COLORS.RETRO,
|
||||
map: texture,
|
||||
bumpMap: texture,
|
||||
bumpScale: 1.5,
|
||||
bumpScale: 5,
|
||||
envMap: environment,
|
||||
envMapIntensity: 5,
|
||||
roughness: 0.03,
|
||||
@@ -181,7 +181,6 @@ InstancedMino.prototype.materials = {
|
||||
#include <begin_vertex>
|
||||
vPos = position;
|
||||
|
||||
// Bruit basé sur la position du sommet pour irrégularité
|
||||
float n = sin(position.x*3.1 + position.y*5.2 + position.z*7.3) * 0.03;
|
||||
transformed += normal * n;
|
||||
`
|
||||
@@ -490,7 +489,7 @@ class Playfield extends THREE.Group {
|
||||
color: COLORS.RETRO,
|
||||
map: retroEdgeTexture,
|
||||
bumpMap: retroEdgeTexture,
|
||||
bumpScale: 1.5,
|
||||
bumpScale: 5,
|
||||
envMap: environment,
|
||||
envMapIntensity: 5,
|
||||
roughness: 0.03,
|
||||
|
||||
@@ -57,39 +57,40 @@ export class Vortex extends THREE.Group {
|
||||
this.add(this.opaqueCylinder)
|
||||
})
|
||||
|
||||
this.globalRotation = 0.028
|
||||
this.transparentTextureRotation = 0.005
|
||||
this.transparentMoveForward = 0.009
|
||||
this.opaqueTextureRotation = 0.006
|
||||
this.opaqueMoveForward = 0.025
|
||||
this.globalRotation = 0.028
|
||||
this.transparentTextureRotation = 0.005
|
||||
this.transparentMoveForward = 0.009
|
||||
this.opaqueTextureRotation = 0.006
|
||||
this.opaqueMoveForward = 0.025
|
||||
|
||||
this.visible = true
|
||||
break
|
||||
|
||||
case "Space":
|
||||
loader.load("./images/colorfull.jpg", texture => {
|
||||
texture.wrapS = THREE.RepeatWrapping
|
||||
texture.wrapS = THREE.MirroredRepeatWrapping
|
||||
texture.wrapT = THREE.MirroredRepeatWrapping
|
||||
texture.repeat.set(1, 4)
|
||||
texture.repeat.set(1, 8)
|
||||
this.transparentCylinder.material.map = texture
|
||||
this.transparentCylinder.material.opacity = 0.3
|
||||
this.add(this.transparentCylinder)
|
||||
})
|
||||
|
||||
loader.load("./images/stars_space.jpg", texture => {
|
||||
texture.wrapS = THREE.RepeatWrapping
|
||||
texture.wrapS = THREE.MirroredRepeatWrapping
|
||||
texture.wrapT = THREE.MirroredRepeatWrapping
|
||||
texture.repeat.set(3, 6)
|
||||
texture.repeat.set(4, 8)
|
||||
this.opaqueCylinder.material.map = texture
|
||||
this.opaqueCylinder.material.map.offset.x = 5
|
||||
this.opaqueCylinder.material.blending = THREE.AdditiveBlending
|
||||
this.add(this.opaqueCylinder)
|
||||
})
|
||||
|
||||
this.globalRotation = 0.028
|
||||
this.opaqueTextureRotation = 0.006
|
||||
this.opaqueMoveForward = 0.06
|
||||
this.globalRotation = 0.028
|
||||
this.opaqueTextureRotation = 0.006
|
||||
this.opaqueMoveForward = 0.04
|
||||
this.transparentTextureRotation = 0
|
||||
this.transparentMoveForward = 0.01
|
||||
this.transparentMoveForward = 0.02
|
||||
|
||||
this.visible = true
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user