CubeTexture.js 689 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.CubeTexture = function ( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
  5. mapping = mapping !== undefined ? mapping : THREE.CubeReflectionMapping;
  6. THREE.Texture.call( this, images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
  7. this.images = images;
  8. this.flipY = false;
  9. };
  10. THREE.CubeTexture.prototype = Object.create( THREE.Texture.prototype );
  11. THREE.CubeTexture.prototype.constructor = THREE.CubeTexture;
  12. THREE.CubeTexture.prototype.copy = function ( source ) {
  13. THREE.Texture.prototype.copy.call( this, source );
  14. this.images = source.images;
  15. return this;
  16. };