CanvasTexture.js 519 B

12345678910111213141516171819
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. import { Texture } from './Texture.js';
  5. function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
  6. Texture.call( this, canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
  7. this.needsUpdate = true;
  8. }
  9. CanvasTexture.prototype = Object.create( Texture.prototype );
  10. CanvasTexture.prototype.constructor = CanvasTexture;
  11. CanvasTexture.prototype.isCanvasTexture = true;
  12. export { CanvasTexture };