CanvasTexture.js 443 B

1234567891011121314
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.CanvasTexture = function ( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
  5. THREE.Texture.call( this, canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
  6. this.needsUpdate = true;
  7. };
  8. THREE.CanvasTexture.prototype = Object.create( THREE.Texture.prototype );
  9. THREE.CanvasTexture.prototype.constructor = THREE.CanvasTexture;