|
@@ -22,7 +22,7 @@ var Viewer = function (index, dom) {
|
|
|
this.camera = new THREE.PerspectiveCamera();
|
|
|
this.camera.position.set(0, 0, 0.78);
|
|
|
this.control = new THREE.OrbitControls(this.camera, this.dom)
|
|
|
- this.control.enableDamping = false;
|
|
|
+ this.control.enableDamping = true;
|
|
|
this.control.dampingFactor = 0.4;
|
|
|
this.control.minDistance = 0.3;
|
|
|
this.control.maxDistance = 2;
|
|
@@ -244,13 +244,12 @@ Viewer.prototype.animate = function () {
|
|
|
console.log(child);
|
|
|
if (child.name == "WL48_ping") {
|
|
|
let textrueLoader = new THREE.TextureLoader();
|
|
|
- var emissiveTexture = textrueLoader.load("model/shadow.jpg");
|
|
|
+ // var emissiveTexture = textrueLoader.load("model/shadow.jpg");
|
|
|
// emissiveTexture.encoding = THREE.LinearEncoding;
|
|
|
- child.material.emissiveMap = emissiveTexture;
|
|
|
+ // child.material.emissiveMap = emissiveTexture;
|
|
|
child.material.emissiveIntensity = 0;
|
|
|
let step = 1
|
|
|
setInterval(() => {
|
|
|
-
|
|
|
if (window.activetab == 'pic') {
|
|
|
if (child.material.emissiveIntensity > 0.3) {
|
|
|
step = -1
|
|
@@ -260,7 +259,6 @@ Viewer.prototype.animate = function () {
|
|
|
}
|
|
|
child.material.emissiveIntensity += 0.01 * step;
|
|
|
}
|
|
|
-
|
|
|
}, 50);
|
|
|
child.material.emissive = new THREE.Color(0xffffff);
|
|
|
child.material.dispose();
|