@d3p1/img2pxl 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core/index.js
CHANGED
|
@@ -5487,7 +5487,9 @@ class Uo {
|
|
|
5487
5487
|
* improves performance without affecting the final effect
|
|
5488
5488
|
*/
|
|
5489
5489
|
#a() {
|
|
5490
|
-
this.element = document.createElement("canvas"), this.element.style.width = `${Ce}px`, this.element.style.height = `${Ce}px`, this.element.width = Ce, this.element.height = Ce, this.texture = new f.CanvasTexture(this.element), this.#e = this.element.getContext(
|
|
5490
|
+
this.element = document.createElement("canvas"), this.element.style.width = `${Ce}px`, this.element.style.height = `${Ce}px`, this.element.width = Ce, this.element.height = Ce, this.texture = new f.CanvasTexture(this.element), this.#e = this.element.getContext(
|
|
5491
|
+
"2d"
|
|
5492
|
+
);
|
|
5491
5493
|
}
|
|
5492
5494
|
/**
|
|
5493
5495
|
* Init pointer image
|
|
@@ -5566,7 +5568,9 @@ class Fo {
|
|
|
5566
5568
|
this.coord,
|
|
5567
5569
|
this.#t.camera
|
|
5568
5570
|
);
|
|
5569
|
-
const i = this.raycaster.intersectObject(
|
|
5571
|
+
const i = this.raycaster.intersectObject(
|
|
5572
|
+
this.raycasterPlane
|
|
5573
|
+
);
|
|
5570
5574
|
if (i.length) {
|
|
5571
5575
|
const s = i[0].uv;
|
|
5572
5576
|
e = s.x * this.canvas.element.width, t = (1 - s.y) * this.canvas.element.height;
|
|
@@ -5830,7 +5834,11 @@ class Oo {
|
|
|
5830
5834
|
r
|
|
5831
5835
|
), l.uniforms.uDisTexture = new f.Uniform(
|
|
5832
5836
|
this.#e.canvas.texture
|
|
5833
|
-
), l.uniforms.uNoiseFrequency = new f.Uniform(
|
|
5837
|
+
), l.uniforms.uNoiseFrequency = new f.Uniform(
|
|
5838
|
+
t
|
|
5839
|
+
), l.uniforms.uNoiseAmplitude = new f.Uniform(
|
|
5840
|
+
i
|
|
5841
|
+
), l.uniforms.uNoiseTexture = new f.Uniform(a), l.vertexShader = l.vertexShader.replace(
|
|
5834
5842
|
"varying vec4 vColor;",
|
|
5835
5843
|
Ko
|
|
5836
5844
|
), l.vertexShader = l.vertexShader.replace(
|
|
@@ -6151,7 +6159,9 @@ class Xo {
|
|
|
6151
6159
|
* @returns {void}
|
|
6152
6160
|
*/
|
|
6153
6161
|
#l(e = 0) {
|
|
6154
|
-
this.#n.update(e), this.#t.update(this.#n.getElapsed()), this.#r = requestAnimationFrame(
|
|
6162
|
+
this.#n.update(e), this.#t.update(this.#n.getElapsed()), this.#r = requestAnimationFrame(
|
|
6163
|
+
this.#l.bind(this)
|
|
6164
|
+
);
|
|
6155
6165
|
}
|
|
6156
6166
|
/**
|
|
6157
6167
|
* Handle debug
|
|
@@ -6234,4 +6244,4 @@ class Xo {
|
|
|
6234
6244
|
export {
|
|
6235
6245
|
Xo as M
|
|
6236
6246
|
};
|
|
6237
|
-
//# sourceMappingURL=main-
|
|
6247
|
+
//# sourceMappingURL=main-C4W_L2q7.js.map
|