mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
7ef995b655
Conflicts: cocos/3d/lights/spot-light-component.ts cocos/animation/event/event-emitter.ts cocos/physics-2d/box2d/physics-contact.ts cocos/physics-2d/box2d/physics-world.ts cocos/physics-2d/box2d/platform/physics-contact-listener.ts cocos/physics-2d/builtin/builtin-world.ts cocos/physics/framework/components/constraints/configurable-constraint.ts cocos/spine/assembler/simple.ts cocos/spine/skeleton.ts native/cocos/editor-support/spine-wasm/spine-model.cpp native/cocos/editor-support/spine-wasm/spine-model.h native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp native/cocos/editor-support/spine-wasm/spine-skeleton-instance.h native/cocos/editor-support/spine-wasm/spine-type-export.cpp native/external-config.json
49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
import { ccclass, disallowMultiple, executeInEditMode, help, menu, range, rangeMin, serializable, slide, tooltip, type } from '../../../core/data/decorators';
|
|
import { CCFloat, CCInteger } from '../../../core/data/utils/attribute';
|
|
import { PostProcessSetting } from './post-process-setting';
|
|
|
|
@ccclass('cc.Bloom')
|
|
@help('cc.Bloom')
|
|
@menu('PostProcess/Bloom')
|
|
@disallowMultiple
|
|
@executeInEditMode
|
|
export class Bloom extends PostProcessSetting {
|
|
@serializable
|
|
protected _threshold = 0.8;
|
|
@serializable
|
|
protected _iterations = 3;
|
|
@serializable
|
|
protected _intensity = 2.3;
|
|
|
|
@tooltip('i18n:bloom.threshold')
|
|
@rangeMin(0)
|
|
@type(CCFloat)
|
|
set threshold (value: number) {
|
|
this._threshold = value;
|
|
}
|
|
get threshold (): number {
|
|
return this._threshold;
|
|
}
|
|
|
|
@tooltip('i18n:bloom.iterations')
|
|
@slide
|
|
@range([1, 6, 1])
|
|
@type(CCInteger)
|
|
set iterations (value: number) {
|
|
this._iterations = value;
|
|
}
|
|
get iterations (): number {
|
|
return this._iterations;
|
|
}
|
|
|
|
@tooltip('i18n:bloom.intensity')
|
|
@rangeMin(0)
|
|
@type(CCFloat)
|
|
set intensity (value: number) {
|
|
this._intensity = value;
|
|
}
|
|
get intensity (): number {
|
|
return this._intensity;
|
|
}
|
|
}
|