Skip to content

Commit

Permalink
Merge pull request #38 from GengineJS/v3.6.0-pipeline-0714
Browse files Browse the repository at this point in the history
Update the loadOp logic of forwardPipeline
  • Loading branch information
star-e authored Jul 14, 2022
2 parents 5f8631f + 0d6c9b3 commit 4b47b77
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cocos/core/pipeline/custom/web-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ export class WebPipeline extends Pipeline {
this.addRenderTexture(forwardPassRTName, Format.RGBA8, width, height, camera.window);
this.addDepthStencil(forwardPassDSName, Format.DEPTH_STENCIL, width, height, ResourceResidency.MANAGED);
}
const forwardPass = this.addRasterPass(width, height, 'Default', `CameraForwardPass${idx}`);
const forwardPass = this.addRasterPass(width, height, 'default', `CameraForwardPass${idx}`);
if (this._mainLightShadowName && this.resourceGraph.contains(this._mainLightShadowName)) {
const computeView = new ComputeView();
forwardPass.addComputeView(this._mainLightShadowName, computeView);
Expand All @@ -729,12 +729,14 @@ export class WebPipeline extends Pipeline {
}
const passView = new RasterView('_',
AccessType.WRITE, AttachmentType.RENDER_TARGET,
LoadOp.CLEAR, StoreOp.STORE,
this.getLoadOpOfClearFlag(camera.clearFlag,
AttachmentType.RENDER_TARGET), StoreOp.STORE,
camera.clearFlag,
new Color(camera.clearColor.x, camera.clearColor.y, camera.clearColor.z, camera.clearColor.w));
const passDSView = new RasterView('_',
AccessType.WRITE, AttachmentType.DEPTH_STENCIL,
LoadOp.CLEAR, StoreOp.STORE,
this.getLoadOpOfClearFlag(camera.clearFlag,
AttachmentType.DEPTH_STENCIL), StoreOp.STORE,
camera.clearFlag,
new Color(1, 0, 0, 0));
forwardPass.addRasterView(forwardPassRTName, passView);
Expand Down

0 comments on commit 4b47b77

Please sign in to comment.