Skip to content

Commit

Permalink
fix ui pass
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e committed Nov 14, 2024
1 parent a203b12 commit 90b908a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions editor/assets/default_renderpipeline/builtin-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ export class BuiltinForwardPassBuilder implements rendering.PipelinePassBuilder
}

if (cameraConfigs.remainingPasses === 0 && cameraConfigs.enableShadingScale) {
addCopyToScreenPass(ppl, pplConfigs, cameraConfigs, context.colorName);
return addCopyToScreenPass(ppl, pplConfigs, cameraConfigs, context.colorName);
} else {
return pass;
}

return pass;
}
private _addCascadedShadowMapPass(
ppl: rendering.BasicPipeline,
Expand Down Expand Up @@ -1529,6 +1529,7 @@ if (rendering) {
private readonly _toneMappingPass = new BuiltinToneMappingPassBuilder();
private readonly _fxaaPass = new BuiltinFXAAPassBuilder();
private readonly _fsrPass = new BuiltinFsrPassBuilder();
private readonly _uiPass = new BuiltinUiPassBuilder();
// Internal cached resources
private readonly _clearColor = new Color(0, 0, 0, 1);
private readonly _viewport = new Viewport();
Expand Down Expand Up @@ -1591,6 +1592,7 @@ if (rendering) {
if (settings.fsr.enabled) {
passBuilders.push(this._fsrPass);
}
passBuilders.push(this._uiPass);
}

private _setupBuiltinCameraConfigs(
Expand Down

0 comments on commit 90b908a

Please sign in to comment.