Notified the MeshFeatureProcessor when a ReflectionProbe is baked.

Signed-off-by: dmcdiar <dmcdiar@amazon.com>
This commit is contained in:
dmcdiar
2021-07-09 01:36:58 -07:00
parent 097dc25424
commit 9794182842
@@ -256,6 +256,10 @@ namespace AZ
{
AZ_Assert(probe.get(), "SetProbeCubeMap called with an invalid handle");
probe->SetCubeMapImage(cubeMapImage, relativePath);
// notify the MeshFeatureProcessor that the reflection probe changed
MeshFeatureProcessor* meshFeatureProcessor = GetParentScene()->GetFeatureProcessor<MeshFeatureProcessor>();
meshFeatureProcessor->UpdateMeshReflectionProbes();
}
void ReflectionProbeFeatureProcessor::SetProbeTransform(const ReflectionProbeHandle& probe, const AZ::Transform& transform)