Three.Legacy.js 552 B

123456789101112131415161718192021
  1. import { WebGLRenderTarget } from './renderers/WebGLRenderTarget.js';
  2. export class WebGLMultipleRenderTargets extends WebGLRenderTarget { // @deprecated, r162
  3. constructor( width = 1, height = 1, count = 1, options = {} ) {
  4. console.warn( 'THREE.WebGLMultipleRenderTargets has been deprecated and will be removed in r172. Use THREE.WebGLRenderTarget and set the "count" parameter to enable MRT.' );
  5. super( width, height, { ...options, count } );
  6. this.isWebGLMultipleRenderTargets = true;
  7. }
  8. get texture() {
  9. return this.textures;
  10. }
  11. }
粤ICP备19079148号