diff --git a/filament/src/ShadowMapManager.cpp b/filament/src/ShadowMapManager.cpp index 5caded46bb6..e2d9597ed3e 100644 --- a/filament/src/ShadowMapManager.cpp +++ b/filament/src/ShadowMapManager.cpp @@ -291,6 +291,8 @@ FrameGraphId ShadowMapManager::render(FrameGraph& fg, FEngine view.prepareCamera(cameraInfo); + view.prepareShadowMap(); + // We set a viewport with a 1-texel border for when we index outside the // texture. // DON'T CHANGE this unless ShadowMap::getTextureCoordsMapping() is updated too.