CanvasTexture.js 471 B

123456789101112131415
  1. import { Texture } from './Texture.js';
  2. function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
  3. Texture.call( this, canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
  4. this.needsUpdate = true;
  5. }
  6. CanvasTexture.prototype = Object.create( Texture.prototype );
  7. CanvasTexture.prototype.constructor = CanvasTexture;
  8. CanvasTexture.prototype.isCanvasTexture = true;
  9. export { CanvasTexture };
粤ICP备19079148号