WebGLRenderTarget.js 991 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @author szimek / https://github.com/szimek/
  3. */
  4. THREE.WebGLRenderTarget = function ( width, height, options ) {
  5. this.width = width;
  6. this.height = height;
  7. options = options || {};
  8. this.wrapS = options.wrapS !== undefined ? options.wrapS : THREE.ClampToEdgeWrapping;
  9. this.wrapT = options.wrapT !== undefined ? options.wrapT : THREE.ClampToEdgeWrapping;
  10. this.magFilter = options.magFilter !== undefined ? options.magFilter : THREE.LinearFilter;
  11. this.minFilter = options.minFilter !== undefined ? options.minFilter : THREE.LinearMipMapLinearFilter;
  12. this.offset = new THREE.Vector2( 0, 0 );
  13. this.repeat = new THREE.Vector2( 1, 1 );
  14. this.format = options.format !== undefined ? options.format : THREE.RGBAFormat;
  15. this.type = options.type !== undefined ? options.type : THREE.UnsignedByteType;
  16. this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
  17. this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : true;
  18. };
粤ICP备19079148号