Files
red-valley/resources/[framework]/[depends]/phone-render/module/renderers/WebGLMultisampleRenderTarget.js

36 lines
686 B
JavaScript
Raw Normal View History

2026-03-29 21:41:17 +03:00
import { WebGLRenderTarget } from './WebGLRenderTarget.js';
/**
* @author Mugen87 / https://github.com/Mugen87
* @author Matt DesLauriers / @mattdesl
*/
function WebGLMultisampleRenderTarget( width, height, options ) {
WebGLRenderTarget.call( this, width, height, options );
this.samples = 4;
}
WebGLMultisampleRenderTarget.prototype = Object.assign( Object.create( WebGLRenderTarget.prototype ), {
constructor: WebGLMultisampleRenderTarget,
isWebGLMultisampleRenderTarget: true,
copy: function ( source ) {
WebGLRenderTarget.prototype.copy.call( this, source );
this.samples = source.samples;
return this;
}
} );
export { WebGLMultisampleRenderTarget };