Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching to another renderer when using postprocessing #126

Open
iuriiiurevich opened this issue Apr 6, 2022 · 0 comments
Open

Switching to another renderer when using postprocessing #126

iuriiiurevich opened this issue Apr 6, 2022 · 0 comments

Comments

@iuriiiurevich
Copy link
Contributor

iuriiiurevich commented Apr 6, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant