UNPKG

471 BJavaScriptView Raw
1import { Texture } from './Texture.js';
2
3function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
4
5 Texture.call( this, canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
6
7 this.needsUpdate = true;
8
9}
10
11CanvasTexture.prototype = Object.create( Texture.prototype );
12CanvasTexture.prototype.constructor = CanvasTexture;
13CanvasTexture.prototype.isCanvasTexture = true;
14
15export { CanvasTexture };