22 lines
552 B
JavaScript
22 lines
552 B
JavaScript
import { WebGLRenderTarget } from './renderers/WebGLRenderTarget.js';
|
|
|
|
export class WebGLMultipleRenderTargets extends WebGLRenderTarget { // @deprecated, r162
|
|
|
|
constructor( width = 1, height = 1, count = 1, options = {} ) {
|
|
|
|
console.warn( 'THREE.WebGLMultipleRenderTargets has been deprecated and will be removed in r172. Use THREE.WebGLRenderTarget and set the "count" parameter to enable MRT.' );
|
|
|
|
super( width, height, { ...options, count } );
|
|
|
|
this.isWebGLMultipleRenderTargets = true;
|
|
|
|
}
|
|
|
|
get texture() {
|
|
|
|
return this.textures;
|
|
|
|
}
|
|
|
|
}
|