tweaking
This commit is contained in:
parent
69b2b77fe9
commit
a7eff47b97
@ -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,
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user