Skip to content

Commit 7416a24

Browse files
authored
Optimizing the code of built-in custom pipelines (#18732)
1 parent 74833b6 commit 7416a24

File tree

4 files changed

+302
-305
lines changed

4 files changed

+302
-305
lines changed

editor/assets/default_renderpipeline/builtin-pipeline-settings.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { EDITOR } from 'cc/env';
3131

3232
import {
3333
BloomType,
34-
fillRequiredPipelineSettings, getBuiltinBloomMaterial, makePipelineSettings, PipelineSettings,
34+
fillRequiredPipelineSettings, makePipelineSettings, PipelineSettings,
3535
} from './builtin-pipeline-types';
3636

3737
const { ccclass, disallowMultiple, executeInEditMode, menu, property, requireComponent, type } = _decorator;
@@ -283,9 +283,6 @@ export class BuiltinPipelineSettings extends Component {
283283
@property({
284284
group: { id: 'Bloom', name: 'Bloom (PostProcessing)', style: 'section' },
285285
})
286-
@visible(function(this: BuiltinPipelineSettings) {
287-
return this.bloomType === BloomType.MipmapFilter;
288-
})
289286
set bloomIntensity(value: number) {
290287
this._settings.bloom.intensity = value;
291288
if (EDITOR) {

editor/assets/default_renderpipeline/builtin-pipeline-types.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ export interface MSAA {
3838
[name: string]: unknown;
3939
}
4040

41+
export interface ForwardPassConfigs {
42+
enableMainLightShadowMap: boolean;
43+
enableMainLightPlanarShadowMap: boolean;
44+
enablePlanarReflectionProbe: boolean;
45+
enableMSAA: boolean;
46+
enableSingleForwardPass: boolean;
47+
}
48+
4149
export function makeMSAA(): MSAA {
4250
return {
4351
enabled: false,

0 commit comments

Comments
 (0)