starry / backend /libs /three /textures /CanvasTexture.js
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
import { Texture } from './Texture.js';
class CanvasTexture extends Texture {
constructor(canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy) {
super(canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy);
this.needsUpdate = true;
}
}
CanvasTexture.prototype.isCanvasTexture = true;
export { CanvasTexture };