Repository navigation
fix(gl): respect camera near/far in VisGL - #393
Merged
Merged
Conversation
Apply the same rule as the RTX device: unset means no clipping, and invalid values (not 0 < near < far) are ignored with a warning. The world-fitted clip range is narrowed to the requested near/far.
Same rule as the RTX device (0 <= near < far, invalid values ignored with a warning), narrowing the world-fitted clip range.
Collaborator
Author
|
thanks for the fix. 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

VisGL ignored the ANARI
near/farcamera parameters and always fit the clip range to the world bounds.Both the perspective and orthographic cameras now apply the same rule as the RTX device (
Camera::commitClipPlanes):0 < near < far; orthographic: not0 <= near < far) are ignored together with a warningWithout
near, the perspective camera keeps its existingfar/1000depth-precision fallback.Tested: the VisGL device builds. No rendering tests were run.