this.geometryScale = 3;
- this.stats = new Stats();
- this.stats.showPanel(0);
- document.body.appendChild(this.stats.dom);
-
this.container = $(this.jcontainer).get(0);
this.init3D('performancesTest');
this.bendForceMultiplicator = 1.2;
}
this.bend = new Bend(0, this.bendOffset, this.bendAngle * 0.0174533);
-
this.bend.constraint = -1;
this.modifier.reset();
this.modifier.addModifier(this.bend);
animate: function (next) {
var $this = this;
- if (this.stats === undefined) {
- try {
- window.requestAnimationFrame(this.animate);
- } catch (e) {
- setTimeout(function () {
- $this.animate(true);
- }, 100);
- }
- return;
- }
if (next) {
requestAnimationFrame(function () {
});
}
- this.stats.update();
var d = ((720 + this._pageRotation) % 360);
this.plane.rotation.y = d * this.deg2rad;
this.renderer.render(this.scene, this.camera);