Skip to content

Commit

Permalink
Fix planar shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
GengineJS committed Nov 8, 2023
1 parent 7d3ab9e commit 747c642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos/rendering/custom/web-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ export class WebRenderQueueBuilder extends WebSetter implements RenderQueueBuild
camera.scene,
camera,
sceneFlags,
lightTarget ? CullingFlags.CAMERA_FRUSTUM | CullingFlags.LIGHT_BOUNDS : CullingFlags.CAMERA_FRUSTUM,
lightTarget && !(sceneFlags & SceneFlags.SHADOW_CASTER) ? CullingFlags.CAMERA_FRUSTUM | CullingFlags.LIGHT_BOUNDS : CullingFlags.CAMERA_FRUSTUM,
lightTarget,
);
this._renderGraph.addVertex<RenderGraphValue.Scene>(RenderGraphValue.Scene, sceneData, name, '', renderGraphPool.createRenderData(), false, this._vertID);
Expand All @@ -1284,7 +1284,7 @@ export class WebRenderQueueBuilder extends WebSetter implements RenderQueueBuild
camera.scene,
camera,
sceneFlags,
light ? CullingFlags.CAMERA_FRUSTUM | CullingFlags.LIGHT_BOUNDS : CullingFlags.CAMERA_FRUSTUM,
light && !(sceneFlags & SceneFlags.SHADOW_CASTER) ? CullingFlags.CAMERA_FRUSTUM | CullingFlags.LIGHT_BOUNDS : CullingFlags.CAMERA_FRUSTUM,
light,
);
const renderData = renderGraphPool.createRenderData();
Expand Down

0 comments on commit 747c642

Please sign in to comment.