diff --git a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp index cc414e985a..2937efdd9d 100644 --- a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp +++ b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp @@ -70,7 +70,10 @@ void ShadowMapBatchedQueue::gatherLightPasses(const scene::Camera *camera, const } else { layer = csmLayers->getLayers()[level]; } - shadowCulling(_pipeline, camera, layer); + bool isCullingEnable = camera->isCullingEnabled(); + if (isCullingEnable) { + shadowCulling(_pipeline, camera, layer); + } const RenderObjectList &dirShadowObjects = layer->getShadowObjects(); for (const auto &ro : dirShadowObjects) { add(ro.model);