CubeTexture.js 688 B

1234567891011121314151617181920212223242526272829
  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.clone = function () {
  13. var texture = new THREE.CubeTexture();
  14. texture.copy( this );
  15. texture.images = this.images;
  16. return texture;
  17. };
粤ICP备19079148号