mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.86k stars 35.39k forks source link

WebGPURenderer: Multiple renderer setup with FX produces warnings. #29825

Open didibr opened 2 weeks ago

didibr commented 2 weeks ago

Description

I’m trying to create 2 different scenes with 2 different webgpus and 2 different postprocess, they give an error when using postprocess.

Reproduction steps

  1. create a class to create a webgpu scene
  2. use this class and create 2 webgpu
  3. when use postProcess, three fails

Code

//If disabling postprocess with normal render works on 'update()'
   //project.postProcessRender.renderAsync(project.scene, project.camera);
    //default render
    project.renderer.renderAsync(project.scene, project.camera);

//or if enable only one webview work too
//create a project WebGPU2
var project2=new Project();
var element2=document.getElementById('div2');
//project2.init(element2);

Live example

With double and Postproces - fail With double and not Postprocess - works With one and Postprocess- works

Screenshots

image

Version

r170

Device

Desktop

Browser

Chrome

OS

Windows

Mugen87 commented 2 weeks ago

Here is a simplified test case without MRT and Bloom: https://jsfiddle.net/6zLm8nga/