Merge pull request #2023 from aws-lumberyard-dev/Atom/dmcdiar/ATOM-15971

Meshes using forward-pass IBL do not update when a ReflectionProbe is baked
This commit is contained in:
dmcdiarmid-ly
2021-07-09 17:49:24 -07:00
committed by GitHub
@@ -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)