From a203b12b8fe8a0e72eef1d6959cb5701a86e8255 Mon Sep 17 00:00:00 2001 From: Zhou Zhenglong Date: Fri, 15 Nov 2024 01:28:14 +0800 Subject: [PATCH] remove resetCamera --- cocos/rendering/custom/pipeline.ts | 1 - .../assets/default_renderpipeline/builtin-pipeline-types.ts | 2 +- editor/assets/default_renderpipeline/builtin-pipeline.ts | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/cocos/rendering/custom/pipeline.ts b/cocos/rendering/custom/pipeline.ts index b2fb592896b..a776f433d3e 100644 --- a/cocos/rendering/custom/pipeline.ts +++ b/cocos/rendering/custom/pipeline.ts @@ -1660,7 +1660,6 @@ export interface Pipeline extends BasicPipeline { export interface PipelinePassBuilder { getConfigOrder (): number; getRenderOrder (): number; - resetCamera? (cameraConfigs: { [name: string]: any }): void; configCamera? ( camera: Readonly, pplConfigs: { readonly [name: string]: any }, diff --git a/editor/assets/default_renderpipeline/builtin-pipeline-types.ts b/editor/assets/default_renderpipeline/builtin-pipeline-types.ts index 45a99d5f147..7440d6588c1 100644 --- a/editor/assets/default_renderpipeline/builtin-pipeline-types.ts +++ b/editor/assets/default_renderpipeline/builtin-pipeline-types.ts @@ -28,7 +28,7 @@ * ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! ========================= */ /* eslint-disable max-len */ -import { Material, Texture2D, Vec3, gfx } from 'cc'; +import { Material, Texture2D, gfx } from 'cc'; const { SampleCount } = gfx; diff --git a/editor/assets/default_renderpipeline/builtin-pipeline.ts b/editor/assets/default_renderpipeline/builtin-pipeline.ts index 80a500b94d7..5916422ac86 100644 --- a/editor/assets/default_renderpipeline/builtin-pipeline.ts +++ b/editor/assets/default_renderpipeline/builtin-pipeline.ts @@ -1655,12 +1655,6 @@ if (rendering) { this._setupBuiltinCameraConfigs(camera, pipelineConfigs, cameraConfigs); - // Reset camera configs - for (const builder of this._passBuilders) { - if (builder.resetCamera) { - builder.resetCamera(cameraConfigs); - } - } for (const builder of this._passBuilders) { if (builder.configCamera) { builder.configCamera(camera, pipelineConfigs, cameraConfigs);