import { WebGLRenderer , WebGLRenderTarget } from 'three' ; import { Pass } from 'three/examples/jsm/postprocessing/Pass' ; import { Background } from '../background' ; class BackgroundPass extends Pass { private _background : Background ; param { Background } background constructor ( background ) { super ( ) ; this . _background = background ; } param { Background } background setBackground ( background ) { this . _background = background ; } returns get background ( ) : Background { return this . _background ; } param { number } width param { number } height setSize ( width , height ) { this . _background . setSize ( width , height ) ; } param { WebGLRenderer } renderer param { WebGLRenderTarget } writeBuffer render ( renderer , writeBuffer ) { this . _background . render ( renderer , this . renderToScreen ? null : writeBuffer ) ; } /**
     * Disposes this object. Call when this object is no longer needed, otherwise leaks may occur.
     */ dispose ( ) { this . _background . dispose ( ) ; } } export { BackgroundPass , } ; export default BackgroundPass ;