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

How to change zfar? #549

Open
bhowmickarka opened this issue Jan 11, 2023 · 2 comments
Open

How to change zfar? #549

bhowmickarka opened this issue Jan 11, 2023 · 2 comments

Comments

@bhowmickarka
Copy link

Hello,
I have a very beginner level question. Is there a way to adapt zfar for the cameras?

@johguenther
Copy link
Contributor

In ray tracing it is usually not needed to set a zfar. Depending on the use case there are some possibilities:

  • You can set a map_maxDepth texture on the Renderer (can be just 1x1 texel large), which is intended to facilitate compositing with other render passes (using it's z-buffer).
  • Alternatively you can use a Plane (or any other) Geometry as clippingGeometry at a Group.

@johguenther
Copy link
Contributor

Did any of the alternatives work?

Can you briefly describe the usecase – we can see it as feature request to add a farClip parameter to cameras.

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

2 participants