updating atom mesh component to support non-uniform scale component

This commit is contained in:
greerdv
2021-04-14 14:05:59 +01:00
parent 5de3ff4c61
commit 2fb2813b48
35 changed files with 166 additions and 84 deletions
@@ -223,7 +223,7 @@ namespace AZ
{
AZStd::shared_ptr<ReflectionProbe> reflectionProbe = AZStd::make_shared<ReflectionProbe>();
reflectionProbe->Init(GetParentScene(), &m_reflectionRenderData);
reflectionProbe->SetTransform(transform);
reflectionProbe->SetMatrix3x4(AZ::Matrix3x4::CreateFromTransform(transform));
reflectionProbe->SetUseParallaxCorrection(useParallaxCorrection);
m_reflectionProbes.push_back(reflectionProbe);
m_probeSortRequired = true;
@@ -264,10 +264,10 @@ namespace AZ
probe->SetCubeMapImage(cubeMapImage);
}
void ReflectionProbeFeatureProcessor::SetProbeTransform(const ReflectionProbeHandle& probe, const AZ::Transform& transform)
void ReflectionProbeFeatureProcessor::SetProbeMatrix3x4(const ReflectionProbeHandle& probe, const AZ::Matrix3x4& matrix3x4)
{
AZ_Assert(probe.get(), "SetProbeTransform called with an invalid handle");
probe->SetTransform(transform);
AZ_Assert(probe.get(), "SetProbeMatrix3x4 called with an invalid handle");
probe->SetMatrix3x4(matrix3x4);
m_probeSortRequired = true;
}