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 => {
|
colorfullTexture = new THREE.TextureLoader(loadingManager).load("./images/colorfull.jpg", texture => {
|
||||||
texture.wrapS = THREE.RepeatWrapping
|
texture.wrapS = THREE.RepeatWrapping
|
||||||
texture.wrapT = THREE.MirroredRepeatWrapping
|
texture.wrapT = THREE.MirroredRepeatWrapping
|
||||||
texture.repeat.set(2, 4)
|
texture.repeat.set(1, 2)
|
||||||
})
|
})
|
||||||
loadingManager.onLoad = function() {
|
loadingManager.onLoad = function() {
|
||||||
scene.vortex.darkCylinder.material.map = darkTexture
|
scene.vortex.darkCylinder.material.map = darkTexture
|
||||||
@ -239,7 +239,7 @@ class TetraGUI extends GUI {
|
|||||||
})
|
})
|
||||||
break
|
break
|
||||||
case "MeshPhysicalMaterial":
|
case "MeshPhysicalMaterial":
|
||||||
minoMaterialFactory = color => new THREE.MeshStandardMaterial({
|
minoMaterialFactory = color => new THREE.MeshPhysicalMaterial({
|
||||||
color : "white",
|
color : "white",
|
||||||
envMap : environnement,
|
envMap : environnement,
|
||||||
transparent : true,
|
transparent : true,
|
||||||
|
@ -16,7 +16,7 @@ class TetraScene extends THREE.Scene {
|
|||||||
this.add(this.ambientLight)
|
this.add(this.ambientLight)
|
||||||
|
|
||||||
this.directionalLight = new THREE.DirectionalLight(0xffffff, 20)
|
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)
|
this.add(this.directionalLight)
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ class MinoMaterial extends THREE.MeshBasicMaterial {
|
|||||||
envMap: environnement,
|
envMap: environnement,
|
||||||
reflectivity: 0.9,
|
reflectivity: 0.9,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
opacity: 0.95,
|
opacity: 0.8,
|
||||||
side: THREE.DoubleSide,
|
side: THREE.DoubleSide,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user