mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
fix:xr skip shadowCulling when camera culling enable is false (#14343)
if not right eye will not show shadow
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user