-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Distance-based Gaussian weighting for Ambient Occlusion #12316
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
95b5c65
Gaussian-weighted ambient occlusion with distance-dependent variance
025da98
Merge tag 'pre-prettier-v3' into ao-sampling-disc
0a809f6
Merge tag 'post-prettier-v3' into ao-sampling-disc
d2e0b48
Merge branch 'main' into ao-sampling-disc
288bfc9
Normalize ambient occlusion by accumulated window weights
717cadc
Merge branch 'main' into ao-sampling-disc
68b2137
Minor cleanup
3939f57
Add stepCount and directionCount uniforms to AmbientOcclusion
8a84e30
Fix AmbientOcclusion stepCount scaling, update WebGL2 loops
3b9eed6
Compute AmbientOcclusion step length from window and sample count
8da2b06
Compute Ambient Occlusion weight normalization analytically
58d7e08
Fix spec for ambient occlusion uniforms
321a42f
Fix far plane artifact, clean up uniforms for Ambient Occlusion
bfc1570
Merge branch 'main' into ao-sampling-disc
7f75e9b
Remove blur stage from Ambient Occlusion
e96f13e
Merge branch 'main' into ao-sampling-disc
02d7d5d
Update docs and CHANGES.md
45ccf4d
Merge branch 'main' into ao-sampling-disc
4ee1492
Adjust near frustum for Ambient Occlusion Sandcastle
ce1779f
Update CHANGES.md with best practice for near frustum plane with AO
b6a41fe
Fix WebGL1 fallback in ConvolveSpecularMapFS
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
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.
Oops, something went wrong.
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.
This method of setting default values is not equivalent to the previous
defaultValue
calls when the value isnull
. I just want to make sure that's intendedThere 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.
@jjspace agreed. I think we are already doing this in other parts of the code, with the assumption that
null
is only an issue when we might be passing the result of adocument.getElement??
call or similar.(and for others reading this, we have more discussion in #12196).