Skip to content

Commit

Permalink
Improve the performance of MIP and MinIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
birdeggb2777 committed Aug 17, 2024
1 parent 6b2bd9c commit 5b3a15d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bluelight/scripts/plugin/vr2.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ class VRCube {
var offsety = (this.height / 1 / 2) - (this.height / this.step / 2);
if (this.container) {
if (!this.filter) {
this.container.style.transformStyle = "";
if (this.PerspectiveCheck.checked) this.container.style['transform-origin'] = `center ${(this.height / 2 - offsety)}px ${-this.perspective}`;
else this.container.style['transform-origin'] = `center ${(this.height / 2 - offsety)}px`;

Expand All @@ -362,6 +363,7 @@ class VRCube {
// `translate3d(${this.offset[0]}px,${(this.offset[1] + (offsety))}px,0) scale(${this.scale * this.step}) rotateX(${this.VR2_RotateDeg[0]}deg) rotateY(${this.VR2_RotateDeg[1]}deg) rotateZ(${this.VR2_RotateDeg[2]}deg) `
} else {
this.container.style.transform = "";
this.container.style.transformStyle = "flat";
for (var obj of this.ElemZs) {
if (this.PerspectiveCheck.checked) objstyle['transform-origin'] = `center ${(this.height / 2 - offsety)}px ${-this.perspective}`;
else obj.style['transform-origin'] = `center ${(this.height / 2 - offsety)}px`;
Expand Down

0 comments on commit 5b3a15d

Please # to comment.