Repository navigation
fix(render): Bruneton atmosphere stays off until measured #395
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f51eb33
feat(render): turn Bruneton atmosphere on by default
cursoragent b7bb6c1
fix(render): keep atmosphere off until the heavy scene is measured
cursoragent bcc89ae
fix(render): clear depth for the Bruneton sky and test pixels
cursoragent 93e917e
fix(render): measure Bruneton with Aravath fog and a real far plane
cursoragent bee6f15
fix(render): composite fog and shafts over the Bruneton sky
cursoragent 91cff89
fix(render): use one screen-y mapping for fog and shafts
cursoragent c0e291f
fix(render): sample in-margin shafts and inline the screen helper
cursoragent 8d6e986
fix(render): share the flag gate and the game-camera sun
cursoragent 3eacf8a
fix(render): one budget gate and a fog-on shaft check
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(render): clear depth for the Bruneton sky and test pixels
Aerial treats only a cleared depth of 1 as sky. The ray uses the inverse view-projection, the scene sun, and the camera clip planes. draw_into clears HDR and depth when Bruneton replaces SkyRenderer. The runtime flag follows PresentationQuality, and a headless frame checks sky against near and far geometry. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
- Loading branch information
commit bcc89aec80e65cc7cff29739640878256c7f87ec
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When atmosphere is enabled and water is visible over the far-plane clear, this branch replaces the already-rendered water with
t_sky.renderer.rs:8067-8077recordsrun_water_passbefore Bruneton, whilewater.rs:584disables water depth writes, so those water pixels still have depth1.0; the previous shader preservedscene_colorfor them. Record Bruneton before transparent water/overlays or otherwise preserve their color.Useful? React with 👍 / 👎.