Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e committed Nov 15, 2024
1 parent a1c6c56 commit 48cd968
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions editor/assets/default_renderpipeline/builtin-dof-pass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,7 @@ export class BuiltinDepthOfFieldPass extends BuiltinPipelinePassBuilder
ppl: rendering.BasicPipeline,
pplConfigs: Readonly<PipelineConfigs>,
cameraConfigs: Readonly<CameraConfigs & DofPassConfigs>,
window: renderer.RenderWindow,
camera: renderer.scene.Camera,
nativeWidth: number,
nativeHeight: number): void {
window: renderer.RenderWindow): void {
const id = window.renderWindowId;
if (cameraConfigs.enableDof) {
ppl.addRenderTarget(`DofRadiance${id}`,
Expand All @@ -236,6 +233,7 @@ export class BuiltinDepthOfFieldPass extends BuiltinPipelinePassBuilder
}
--cameraConfigs.remainingPasses;

assert(!!this._material);
if (cameraConfigs.remainingPasses === 0) {
return this._addDepthOfFieldPasses(ppl, pplConfigs,
cameraConfigs, this._material,
Expand Down

0 comments on commit 48cd968

Please sign in to comment.