PG: https://playground.babylonjs.com/#PIZ1GK#2011.
I just recognized that camera.customRenderTargets will render twice when using utilityLayer, but it seems there is little situation that customRenderTargets are needed when rendering utilityLayerScene. Maybe something like scene.customRenderTargetsEnabled should be added?
If it is just expected, when should I use camera.customRenderTargets and scene.customRenderTargets?
So I think utility layer can use a new camera cloned from origin scene, as it seems there is no situation that utility layer needs a texture from camera.customRenderTargets.
There won’t be this problem with frame graphs because we don’t use scene.customRenderTargets / camera.customRenderTargets anymore: all render passes are defined inside the graph.