Repository navigation
View model under HDR, and an anti-aliasing pass from content - #137
Merged
Merged
Conversation
The view model's camera drew in HDR into the world camera's texture after its tone mapping and grade, with neither: a grade's exposure brightened the world and left the arms that many stops darker. It now draws without HDR whatever the world camera does, tone mapped and graded (the exposure) in its shaders; over an HDR world camera it draws into a texture of its own, cleared to nothing, laid over the world's picture with premultiplied alpha. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…MSAA over HDR picture.anti_aliasing: Some(Fxaa | Smaa) puts Bevy's FXAA or SMAA (High) on the world cameras, for a camera SSAO took MSAA from; taking it out gives the camera back its own. Over an HDR world camera the view model has a texture of its own and keeps Bevy's 4x MSAA whatever the world camera has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Two follow-ups to #136, found when Cranium turned its bloom and SSAO on.
The arms under an HDR world camera
The view model's camera used to draw in HDR into the world camera's texture, after that camera's tone mapping and grade, so it got neither. A grade's exposure brightened the world and left the arms that many stops darker: 1.7 stops in Cranium's tunnels as soon as a bloom made the camera HDR.
Now it never draws in HDR. Its materials tone map in their shaders and take the world camera's grade, which they draw as its exposure, the same way they do over a camera without HDR. Over an HDR world camera, the two textures have different formats and can't be shared, so the view model draws into its own. That texture is cleared to nothing and laid over the world's finished picture with premultiplied alpha (
CameraOutputMode::Write). It keeps Bevy's 4x MSAA there, whatever the world camera has.An anti-aliasing pass from content
picture.anti_aliasing: Some(Fxaa)orSome(Smaa)puts Bevy's FXAA (its defaults) or SMAA (High) on the world cameras. It is meant for a camera that SSAO took MSAA from. Taking it out gives the camera back its own pass, or none. It is off by default.Tests
first_person::the_arms_are_drawn_alike_over_a_world_camera_with_hdr_and_without: the arms' mean colour is (124.8, 133.6, 151.6) both without HDR and in HDR, with a +1.7 exposure grade.the_contents_anti_aliasing_smooths_the_edges_of_a_picture_without_msaa: SMAA changes 182 edge pixels and FXAA 390, the picture's light stays the same, and the picture is unchanged once the pass is taken out.Hdr, the world's grade and tone mapping, its own cleared texture, laid over the world, 4x MSAA), and the anti-aliasing pass going on and giving the camera's own back.shards_actionandshards_motion.🤖 Generated with Claude Code