DataTexture.js 488 B

1234567891011121314
  1. /**
  2. * @author alteredq / http://alteredqualia.com/
  3. */
  4. THREE.DataTexture = function ( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy ) {
  5. THREE.Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
  6. this.image = { data: data, width: width, height: height };
  7. };
  8. THREE.DataTexture.prototype = Object.create( THREE.Texture.prototype );
  9. THREE.DataTexture.prototype.constructor = THREE.DataTexture;
粤ICP备19079148号