-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix disabled shadow inconsistency #17337
Conversation
Interface Check ReportThis pull request does not change any public interfaces ! |
{ // find or create csm info | ||
const BuiltinCascadedShadowMapKey key{&camera, mainLight}; | ||
auto iter = ppl.builtinCSMs.find(key); | ||
if (iter != ppl.builtinCSMs.end()) { | ||
result = &iter->second; | ||
} else { | ||
result = addBuiltinCSMInfo(ppl, pplSceneData, camera, mainLight, key, csmLayers); | ||
} | ||
} |
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.
Always insert csm info.
// shadow not enabled | ||
if (!shadows.isEnabled()) { | ||
return nullptr; | ||
} |
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.
Can also check it as soon as possible.
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.
Check shadow not enabled earlier caused the mismatch. When doing the rendering, csm info is always needed.
Fix missing csm info caused by mismatching set/get pair.
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: