|
@@ -45,7 +45,7 @@
|
|
specular: 0x222222,
|
|
specular: 0x222222,
|
|
shininess: 150,
|
|
shininess: 150,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.SmoothShading
|
|
|
|
|
|
+ flatShading: false
|
|
} );
|
|
} );
|
|
|
|
|
|
var phongMaterialBox = new THREE.MeshPhongMaterial( {
|
|
var phongMaterialBox = new THREE.MeshPhongMaterial( {
|
|
@@ -53,7 +53,7 @@
|
|
specular: 0x111111,
|
|
specular: 0x111111,
|
|
shininess: 100,
|
|
shininess: 100,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.FlatShading
|
|
|
|
|
|
+ flatShading: true
|
|
} );
|
|
} );
|
|
|
|
|
|
var phongMaterialBoxBottom = new THREE.MeshPhongMaterial( {
|
|
var phongMaterialBoxBottom = new THREE.MeshPhongMaterial( {
|
|
@@ -61,7 +61,7 @@
|
|
specular: 0x111111,
|
|
specular: 0x111111,
|
|
shininess: 100,
|
|
shininess: 100,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.FlatShading
|
|
|
|
|
|
+ flatShading: true
|
|
} );
|
|
} );
|
|
|
|
|
|
var phongMaterialBoxLeft = new THREE.MeshPhongMaterial( {
|
|
var phongMaterialBoxLeft = new THREE.MeshPhongMaterial( {
|
|
@@ -69,7 +69,7 @@
|
|
specular: 0x111111,
|
|
specular: 0x111111,
|
|
shininess: 100,
|
|
shininess: 100,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.FlatShading
|
|
|
|
|
|
+ flatShading: true
|
|
} );
|
|
} );
|
|
|
|
|
|
var phongMaterialBoxRight = new THREE.MeshPhongMaterial( {
|
|
var phongMaterialBoxRight = new THREE.MeshPhongMaterial( {
|
|
@@ -77,7 +77,7 @@
|
|
specular: 0x111111,
|
|
specular: 0x111111,
|
|
shininess: 100,
|
|
shininess: 100,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.FlatShading
|
|
|
|
|
|
+ flatShading: true
|
|
} );
|
|
} );
|
|
|
|
|
|
var mirrorMaterialFlat = new THREE.MeshPhongMaterial( {
|
|
var mirrorMaterialFlat = new THREE.MeshPhongMaterial( {
|
|
@@ -85,7 +85,7 @@
|
|
specular: 0xff8888,
|
|
specular: 0xff8888,
|
|
shininess: 10000,
|
|
shininess: 10000,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.FlatShading
|
|
|
|
|
|
+ flatShading: true
|
|
} );
|
|
} );
|
|
mirrorMaterialFlat.mirror = true;
|
|
mirrorMaterialFlat.mirror = true;
|
|
mirrorMaterialFlat.reflectivity = 1;
|
|
mirrorMaterialFlat.reflectivity = 1;
|
|
@@ -95,7 +95,7 @@
|
|
specular: 0xaaaaaa,
|
|
specular: 0xaaaaaa,
|
|
shininess: 10000,
|
|
shininess: 10000,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.FlatShading
|
|
|
|
|
|
+ flatShading: true
|
|
} );
|
|
} );
|
|
mirrorMaterialFlatDark.mirror = true;
|
|
mirrorMaterialFlatDark.mirror = true;
|
|
mirrorMaterialFlatDark.reflectivity = 1;
|
|
mirrorMaterialFlatDark.reflectivity = 1;
|
|
@@ -105,7 +105,7 @@
|
|
specular: 0x222222,
|
|
specular: 0x222222,
|
|
shininess: 10000,
|
|
shininess: 10000,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.SmoothShading
|
|
|
|
|
|
+ flatShading: false
|
|
} );
|
|
} );
|
|
mirrorMaterialSmooth.mirror = true;
|
|
mirrorMaterialSmooth.mirror = true;
|
|
mirrorMaterialSmooth.reflectivity = 0.3;
|
|
mirrorMaterialSmooth.reflectivity = 0.3;
|
|
@@ -115,7 +115,7 @@
|
|
specular: 0x00ff00,
|
|
specular: 0x00ff00,
|
|
shininess: 10000,
|
|
shininess: 10000,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.FlatShading
|
|
|
|
|
|
+ flatShading: true
|
|
} );
|
|
} );
|
|
glassMaterialFlat.glass = true;
|
|
glassMaterialFlat.glass = true;
|
|
glassMaterialFlat.reflectivity = 0.5;
|
|
glassMaterialFlat.reflectivity = 0.5;
|
|
@@ -125,7 +125,7 @@
|
|
specular: 0xffaa55,
|
|
specular: 0xffaa55,
|
|
shininess: 10000,
|
|
shininess: 10000,
|
|
vertexColors: THREE.NoColors,
|
|
vertexColors: THREE.NoColors,
|
|
- shading: THREE.SmoothShading
|
|
|
|
|
|
+ flatShading: false
|
|
} );
|
|
} );
|
|
glassMaterialSmooth.glass = true;
|
|
glassMaterialSmooth.glass = true;
|
|
glassMaterialSmooth.reflectivity = 0.25;
|
|
glassMaterialSmooth.reflectivity = 0.25;
|