-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat(VR): enable SSR #502
Merged
Merged
feat(VR): enable SSR #502
Conversation
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
alandtse
force-pushed
the
water_ssr_vr
branch
2 times, most recently
from
September 10, 2024 08:25
1f38d6f
to
af72977
Compare
alandtse
force-pushed
the
water_ssr_vr
branch
5 times, most recently
from
September 16, 2024 03:56
70f2479
to
54d14f8
Compare
This is ready, but should probably handle some of its predecessor PRs first. I also have some second stage prs that should go in too before this. |
alandtse
force-pushed
the
water_ssr_vr
branch
8 times, most recently
from
September 23, 2024 07:08
b0f78b0
to
02e53a9
Compare
GetEyeIndexPS relies on VR buffers being present which may not occur for image shaders.
This commit will be rearchitected once finalized. This includes some artifacts like black banding.
This is for testing only as it removes any averaging of color with reflectioncolor. This is meant solely to make it easy to see the SSR effect. This will be reverted in a future commit.
Because alpha is based on the prior frame, there will be a lag for showing clouds. This is very obvious in VR. Hide clouds for now.
Allow clearing of all shaders linked to a specific hlsl file. This is useful for DEFINE option passing for features.
Uses new VR function that allows conversion from the coordinates from one eye to the other. This allows us to detect if one eye has calculated a reflection and to use that data instead.
Fixes bug where the fog was being applied less when it was more foggy.
Fixes a bug where a prior saved diskcache shaders could not be cleared by filename.
Fade calculation should be in monoUV so it's relative for both each eye. This fixes an issue where eyes would have drastically different alpha components.
Fixes blue colors near edges when nearly underwater due to incorrect depth detection.
Because VR requires a hidden setting, once enabled on boot, it will persist. Now, if SSR is disabled on boot, it will completely disable the SSR path for maximum performance. However, a restart is necessary to reenable.
Some HMDs appear to have bad transformations so would experience duplication.
alandtse
force-pushed
the
water_ssr_vr
branch
from
September 25, 2024 03:19
02e53a9
to
fc03213
Compare
FlayaN
reviewed
Sep 25, 2024
FlayaN
reviewed
Sep 25, 2024
FlayaN
approved these changes
Sep 25, 2024
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.
This is a work in progress and for documentation only.
Issues with VR SSR:
kMain_Only_Alpha
from the prior frame. In VR you can shake you head much faster than the mouse so while flat also has a disparity, the difference is much smaller and less noticeable.634a624
(#502)3bd4181
(#502)6ab66af
(#502)e7312b2
(#502)f356dbc
(#502)Cleanup tasks:
c55e583
(#502)1e8c2ed
(#502)