3d texture from image

This commit is contained in:
2023-03-31 18:42:12 +02:00
parent 73e88916e9
commit 96f41ea6b3
4 changed files with 8 additions and 4 deletions
+3 -3
View File
@@ -352,15 +352,15 @@ class RepaTexture extends HTMLElement {
}
get width() {
return this._width || this.ref?.videoWidth || this.ref?.width || 0;
return +(this._width || this.getAttribute("width") || this.ref?.videoWidth || this.ref?.width || 0);
}
get height() {
return this._height || this.ref?.videoHeight || this.ref?.height || 0;
return +(this._height || this.getAttribute("height") || this.ref?.videoHeight || this.ref?.height || 0);
}
get depth() {
return this._depth || this.ref?.depth || 0;
return +(this._depth || this.getAttribute("depth") || this.ref?.depth || 0);
}
get magFilter() {