this.enableLight = !this.lowPerf;
this.enableShadow = !this.lowPerf && this.enableLight;
this.antialias = false;
+ this.animationTime = parseFloat(this.fluidbook.datas.mobileTransitionDuration);
if (this.veryLowPerf) {
this.qualityRatio = .7;
this.triangles = 1;
- this.animationTime = parseFloat(this.fluidbook.datas.mobileTransitionDuration) / 1.5;
+ this.animationTime /= 1.5;
} else if (this.lowPerf) {
this.qualityRatio = 1.2;
this.triangles = 2;
- this.animationTime = parseFloat(this.fluidbook.datas.mobileTransitionDuration) / 1.25;
+ this.animationTime /= 1.25;
} else {
this.qualityRatio = 2;
this.triangles = 5;
- this.animationTime = parseFloat(this.fluidbook.datas.mobileTransitionDuration);
}
this.pixelRatio = window.devicePixelRatio * this.qualityRatio;
light.shadow.bias = -0.0075;
light.shadow.radius = 3;
}
-
this.scene.add(light);
}
ctx.drawImage(this.backgrounds[page].get(0), 0, 0, d, d);
// Draw the texts if necessary
if (this.getVersionToLoad(page) === 'textasvector') {
- ctx.drawImage(this.texts[page].get(0), 0, 0, d, d);
+ try {
+ ctx.drawImage(this.texts[page].get(0), 0, 0, d, d);
+ } catch (e) {
+
+ }
}
// Draw the shadow if necessary
if (this.fluidbook.datas.shadeAlpha > 0) {
- var sw = 1024 / 3;
+ var sw = 1024 * .25;
var s, x;
if (page % 2 === 0) {
// Left
s = this.shadeRight;
x = 0;
}
- ctx.globalAlpha = this.fluidbook.datas.shadeAlpha / 100;
+ ctx.globalAlpha = 2 * this.fluidbook.datas.shadeAlpha / 100;
ctx.drawImage(s.get(0), x, 0, sw, d);
ctx.globalAlpha = 1;
}
this.imagesVersion = true;
break;
case 'html5-desktop':
- this.imagesVersion = this.iOS || this.android;
+ this.imagesVersion = this.iOS || this.android || this.IE > 0;
break;
default:
this.imagesVersion = false;