-
Notifications
You must be signed in to change notification settings - Fork 855
Fixed SetPerCameraShaderVariables function not working as expected. #6114
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
Fixed SetPerCameraShaderVariables function not working as expected. #6114
Conversation
…s call has to be called after SetupCameraProperties to reset the values.
Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed. URP Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure. |
It appears that you made a non-draft PR! |
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.
Woot!
This PR has conflicts now, please resolve them so it can be merged. |
…gies/Graphics into universal/xr/fix-percam-shadervar-urp # Conflicts: # com.unity.render-pipelines.universal/Runtime/ScriptableRenderer.cs
…e (target PR was already merged) This reverts commit bc3cd3f.
* Fixing ScreenPosition and PixelPosition flips in built-in, Universal * Adding node test for default screen pos * Screen Position test -- adjust comparison to look correct, and reduce threshold for error * Move pixel coordinate origin to upper left, add pixel position test, and reduce screen position test sensitivity by half OSX GL tests fail even at 1/4 sensitivity.. seems to have unusually large error (but still small on the scale of things) * Dropping sensitivity to 20 * Putting API switches on the sensitivity * Fixing nondeterministic Dither tests * Updated reference images * Adding XR Screen Position dependency for HD * Adding changelog * Flip Vertex Pixel Position to match the standard (upper left origin) * Merge of changes from PR #6114 (simplifies this PR) * Removing XR special case, Adding VFX support * Adding vertex screen position behavior tests * Revert "Merge of changes from PR #6114 (simplifies this PR)" for merge (target PR was already merged) This reverts commit bc3cd3f.
Checklist for PR maker
need-backport-*
label. After you backport the PR, the label changes tobackported-*
.CHANGELOG.md
file.Purpose of this PR
_ScreenParams
set bySetPerCameraShaderVariables
are getting reset.Testing status
_ScreenParams.xy
value on quad.Comments to reviewers
SetupCameraProperties
call will reset_ScreenParams
field set bySetPerCameraShaderVariables
such as_ScreenParams
.SetupCameraProperties
afterSetPerCameraShaderVariables
to avoid being reset