react-postprocessing icon indicating copy to clipboard operation
react-postprocessing copied to clipboard

Switching to another renderer when using postprocessing

Open iuriiiurevich opened this issue 2 years ago • 0 comments

Let's say we have a scene and a GUI switch that enables/disables some postprocessing effects.

The optimal renderer settings depend on whether we use postprocessing or not, for example, an optimal postprocessing workflow requires the following settings among others:

{
	antialias: false,
	depth: false
}

And to render directly to the screen (without postprocessing), we need these values:

{
	antialias: true,
	depth: true
}

As far as I know, renderer settings cannot be changed on the fly.

What is the best practical solution in this situation? Is it possible to switch renderer back and forth while keeping the same scene? If so, how to implement it with react-postprocessing and react-three-fiber?

iuriiiurevich avatar Apr 06 '22 23:04 iuriiiurevich