This commit is contained in:
Adrien MALINGREY 2023-07-13 18:49:28 +02:00
parent 69b2b77fe9
commit a7eff47b97
3 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ class TetraGUI extends GUI {
colorfullTexture = new THREE.TextureLoader(loadingManager).load("./images/colorfull.jpg", texture => {
texture.wrapS = THREE.RepeatWrapping
texture.wrapT = THREE.MirroredRepeatWrapping
texture.repeat.set(2, 4)
texture.repeat.set(1, 2)
})
loadingManager.onLoad = function() {
scene.vortex.darkCylinder.material.map = darkTexture
@ -239,7 +239,7 @@ class TetraGUI extends GUI {
})
break
case "MeshPhysicalMaterial":
minoMaterialFactory = color => new THREE.MeshStandardMaterial({
minoMaterialFactory = color => new THREE.MeshPhysicalMaterial({
color : "white",
envMap : environnement,
transparent : true,

View File

@ -16,7 +16,7 @@ class TetraScene extends THREE.Scene {
this.add(this.ambientLight)
this.directionalLight = new THREE.DirectionalLight(0xffffff, 20)
this.directionalLight.position.set(5, -9, -20)
this.directionalLight.position.set(5, -100, -20)
this.add(this.directionalLight)

View File

@ -91,7 +91,7 @@ class MinoMaterial extends THREE.MeshBasicMaterial {
envMap: environnement,
reflectivity: 0.9,
transparent: true,
opacity: 0.95,
opacity: 0.8,
side: THREE.DoubleSide,
})
}