diff --git a/filament/src/ShadowMapManager.cpp b/filament/src/ShadowMapManager.cpp index 5cdd83e27b7..cce5288440d 100644 --- a/filament/src/ShadowMapManager.cpp +++ b/filament/src/ShadowMapManager.cpp @@ -181,6 +181,9 @@ FrameGraphId ShadowMapManager::render(FrameGraph& fg, FEngine .type = SamplerType::SAMPLER_2D_ARRAY, .format = view.hasVSM() ? vsmTextureFormat : mTextureFormat }); + // This pass must be declared as having a side effect because it never gets a + // "read" from one of its resource (only writes), so the FrameGraph culls it. + builder.sideEffect(); }, [&view](FrameGraphResources const& resources, auto const& data, DriverApi& driver) { // set uniforms needed to render this ShadowMap