I'm having an issue when trying to combine post-processing with the "THREE.WebGLMultisampleRenderTarget." The console shows the error message:
[WebGL-000052BE06CD9380] GL_INVALID_OPERATION: Invalid operation on multisampled framebuffer
When using the regular "THREE.WebGLRenderTarget," no error occurs. I have not been able to find a solution for this problem. Is anyone familiar with this issue?
Here is the code snippet:
// Render target
let RenderTargerClass = null
if (renderer.getPixelRatio() === 1 && renderer.capabilities.isWebGL2){
RenderTargerClass = THREE.WebGLMultisampleRenderTarget
console.log("using WebGLMultisampleRenderTarget")
} else {
RenderTargerClass = THREE.WebGLRenderTarget
console.log("using WebGLRenderTarget")
}
const renderTarget = new RenderTargerClass(
800,
600,
{
minFilter: THREE.LinearFilter,
magFilter: THREE.LinearFilter,
format: THREE.RGBAFormat,
encoding: THREE.sRGBEncoding
}
)
// Composer
const composer = new EffectComposer(renderer, renderTarget)