Hi!
I have a scene with two cameras each set to separate layerMasks. Babylon.js Playground
If I set a MotionBlur postprocess to camera (sphere), secondCamera (box) stops to render and there is a glitch in rendering the view of camera.
@Deltakosh, @sebavan I’m not a professional of the prepass renderer, do you have any idea where to search in the prepass? As it works with the geometry buffer renderer, maybe the prepass or the postprocess itself are missing something. I’m digging right now
@roland, if I’m not wrong, I highly suggest that you use the prepass renderer as it’s better for performances. So don’t force using the geometry buffer renderer in the future. The motion blur post-process must work with the prepass renderer
Thank you @julien-moreau for the advice! I didn’t use the prepass renderer till now and don’t know the details, but I will start to dig the documentation!
@roland@julien-moreau@sebavan after some investigation, I found out that prepass does not handle to case of having 2 active cameras with a different set of post-processes. This will probably be improved in the future (maybe 5.1 ?), in the meantime I would recommend to proceed with the geometryBufferRenderer (as stated above).
Hopefully we can get that fixed, because as Julien said, Prepass cuts.a lot of draw calls compared to GBR