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:
+4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user