@canvas3/nuxt 0.1.37 → 0.1.38
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/module.json
CHANGED
|
@@ -300,7 +300,7 @@ class Canvas3Class {
|
|
|
300
300
|
const bounds = imgHtmlEl.getBoundingClientRect();
|
|
301
301
|
const position = { top: bounds.top, left: bounds.left };
|
|
302
302
|
position.top += this.currentScroll;
|
|
303
|
-
const geometry = new THREE.PlaneGeometry(1, 1);
|
|
303
|
+
const geometry = new THREE.PlaneGeometry(1, 1, 32, 16);
|
|
304
304
|
const bitmap = await createImageBitmap(imgHtmlEl, { imageOrientation: "flipY" });
|
|
305
305
|
const texture = new THREE.Texture(bitmap);
|
|
306
306
|
texture.needsUpdate = true;
|