Merge pull request #440 from aws-lumberyard-dev/pruiksma/ATOM-15427
Cherry pick [ATOM-15427] from 1.0 to main.
This commit is contained in:
+4
-3
@@ -731,11 +731,12 @@ namespace AZ
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Remove unnecessary camera views in shadow properties
|
||||
for (uint16_t lightIndex = 0; lightIndex < aznumeric_cast<uint16_t>(m_shadowProperties.GetDataCount()); ++lightIndex)
|
||||
auto& shadowPropertiesVector = m_shadowProperties.GetDataVector();
|
||||
for (ShadowProperty& shadowProperty : shadowPropertiesVector)
|
||||
{
|
||||
AZStd::unordered_map<const RPI::View*, AZStd::fixed_vector<CascadeSegment, Shadow::MaxNumberOfCascades>>& cascades = m_shadowProperties.GetData(lightIndex).m_segments;
|
||||
auto& cascades = shadowProperty.m_segments;
|
||||
for (auto it = cascades.begin(); it != cascades.end();)
|
||||
{
|
||||
if (AZStd::find(cameraViews.begin(), cameraViews.end(), it->first) != cameraViews.end())
|
||||
|
||||
Reference in New Issue
Block a user