Moved Simulate to OnBeginPrepareRender.
This commit is contained in:
+2
-4
@@ -47,10 +47,8 @@ namespace AZ
|
||||
DisableSceneNotification();
|
||||
}
|
||||
|
||||
void OcclusionCullingPlaneFeatureProcessor::Simulate([[maybe_unused]] const FeatureProcessor::SimulatePacket& packet)
|
||||
{
|
||||
AZ_PROFILE_FUNCTION(Debug::ProfileCategory::AzRender);
|
||||
|
||||
void OcclusionCullingPlaneFeatureProcessor::OnBeginPrepareRender()
|
||||
{
|
||||
AZStd::vector<AZ::Transform> occlusionCullingPlanes;
|
||||
for (auto& occlusionCullingPlane : m_occlusionCullingPlanes)
|
||||
{
|
||||
|
||||
+3
-1
@@ -58,7 +58,9 @@ namespace AZ
|
||||
// FeatureProcessor overrides
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
void Simulate(const FeatureProcessor::SimulatePacket& packet) override;
|
||||
|
||||
// RPI::SceneNotificationBus overrides ...
|
||||
void OnBeginPrepareRender() override;
|
||||
|
||||
// retrieve the full list of occlusion planes
|
||||
using OcclusionCullingPlaneVector = AZStd::vector<AZStd::shared_ptr<OcclusionCullingPlane>>;
|
||||
|
||||
Reference in New Issue
Block a user