-
Notifications
You must be signed in to change notification settings - Fork 839
Fix Resolution Issues for Physically Based Depth of Field #4848
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 all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f8335ce
Add the necesarry texture coordinate clamping for RTHandle for color …
johnpars 05cbc32
Add some resolution independence, fitted for 1920x1080
johnpars d5c552b
Merge branch 'hd/bugfix' into HDRP/fix-1340551
johnpars 136d135
Changelog
johnpars 4d29c2b
Merge branch 'hd/bugfix' into HDRP/fix-1340551
sebastienlagarde 1e565c5
Switch back to point sampling from trilinear, with commentary
johnpars 6cb1017
Update test reference images
johnpars 22ce349
Small correction to the point sampling, always sample mip 0.
johnpars 7729f4c
Re-update the test images, for mip 0 color sampling
johnpars 5674007
Use a simpler UV scaling/clamping since we are now point sampling.
johnpars 5cac9fe
Merge branch 'hd/bugfix' into HDRP/fix-1340551
sebastienlagarde 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
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
.../Assets/ReferenceImages/Linear/LinuxEditor/Vulkan/None/4082_DepthOfField-PB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...eferenceImages/Linear/LinuxEditor/Vulkan/None/4083_DepthOfField-FP16AlphaPB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...sts/Assets/ReferenceImages/Linear/OSXEditor/Metal/None/4082_DepthOfField-PB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...s/ReferenceImages/Linear/OSXEditor/Metal/None/4083_DepthOfField-FP16AlphaPB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...s/ReferenceImages/Linear/WindowsEditor/Direct3D11/None/4082_DepthOfField-PB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ceImages/Linear/WindowsEditor/Direct3D11/None/4083_DepthOfField-FP16AlphaPB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...s/ReferenceImages/Linear/WindowsEditor/Direct3D12/None/4082_DepthOfField-PB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ceImages/Linear/WindowsEditor/Direct3D12/None/4083_DepthOfField-FP16AlphaPB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ssets/ReferenceImages/Linear/WindowsEditor/Vulkan/None/4082_DepthOfField-PB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...erenceImages/Linear/WindowsEditor/Vulkan/None/4083_DepthOfField-FP16AlphaPB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
If I remember correctly, trilinear sampling can introduce some "leaking" between in-focus and out-of-focus regions, that's why I was forcing point sampling. Ideally this choice should be per tile (use trilinear only in tiles without in-focus pixels), but since we don't do that now, I think it's more safe to use point sampling.