CubeTexture.js 685 B

1234567891011121314151617181920212223242526
  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.flipY = false;
  8. };
  9. THREE.CubeTexture.prototype = Object.create( THREE.Texture.prototype );
  10. THREE.CubeTexture.prototype.constructor = THREE.CubeTexture;
  11. Object.defineProperty(THREE.CubeTexture.prototype, "images", {
  12. get: function() {
  13. return this.image;
  14. },
  15. set: function( value ) {
  16. this.image = value;
  17. }
  18. }
  19. );