Skip to content

Commit

Permalink
remove resetCamera
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e committed Nov 14, 2024
1 parent cdd67cb commit a203b12
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion cocos/rendering/custom/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Camera>,
pplConfigs: { readonly [name: string]: any },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 0 additions & 6 deletions editor/assets/default_renderpipeline/builtin-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a203b12

Please sign in to comment.