1 | import { Texture } from './Texture.js';
|
2 |
|
3 | function 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 |
|
11 | CanvasTexture.prototype = Object.create( Texture.prototype );
|
12 | CanvasTexture.prototype.constructor = CanvasTexture;
|
13 | CanvasTexture.prototype.isCanvasTexture = true;
|
14 |
|
15 | export { CanvasTexture };
|