Constructor
new CameraPostEffectComponent()
The rendering effect by camera, some screen post effect(s) can be changed here.
Extends
Members
FXAA :FXAA
Get FXAA.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.FXAA.enable = true;
// @expect(app.camera.postEffect.FXAA.enable == true)
MSAA :MSAA
Get MSAA.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.MSAA.enable = false;
// @expect(app.camera.postEffect.MSAA.enable == false)
active :Boolean
Active or deactive component.
Type:
- Boolean
- Overrides:
- Source:
app :THING.App
Get application.
Type:
- Overrides:
- Source:
bloom :Bloom
Get bloom.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.bloom.enable = true;
// @expect(app.camera.postEffect.bloom.enable == true)
blurEdge :BlurEdge
Get blur edge.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.blurEdge.enable = true;
// @expect(app.camera.postEffect.blurEdge.enable == true)
chromaticAberration :ChromaticAberration
Get chromatic aberration.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.chromaticAberration.enable = true;
// @expect(app.camera.postEffect.chromaticAberration.enable == true)
colorCorrection :ColorCorrection
Get color correction.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.colorCorrection.enable = true;
// @expect(app.camera.postEffect.colorCorrection.enable == true)
config :PostEffectInfo
Get/Set config.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config = {
FXAA: {enable: true}
};
// @expect(app.camera.postEffect.config.FXAA.enable == true)
dof :Dof
Get dof.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.dof.enable = true;
// @expect(app.camera.postEffect.dof.enable == true)
enable :Boolean
Enable/Disable effect.
Type:
- Boolean
Example
let app = THING.App.current
app.camera.postEffect.enable = false;
// @expect(app.camera.postEffect.enable == false)
film :Film
Get film.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.film.enable = true;
// @expect(app.camera.postEffect.film.enable == true)
object :THING.BaseObject
Get object.
Type:
- Overrides:
- Source:
onActiveChange :OnActiveChangeComponentCallback
When active change callback function.
Type:
- Overrides:
- Source:
onAfterAdd :OnAfterAddComponentCallback
After add.
Type:
- Overrides:
- Source:
onAfterAddChild :OnAddChildComponentCallback
When after add child callback function.
Type:
- Overrides:
- Source:
onAfterRemove :OnAfterRemoveComponentCallback
After remove.
Type:
- Overrides:
- Source:
onAfterRemoveChild :OnRemoveChildComponentCallback
When after remove child callback function.
Type:
- Overrides:
- Source:
onBeforeAdd :OnBeforeAddComponentCallback
Before add.
Type:
- Overrides:
- Source:
onBeforeAddChild :OnAddChildComponentCallback
When before add child callback function.
Type:
- Overrides:
- Source:
onBeforeRemove :OnBeforeRemoveComponentCallback
Before remove.
Type:
- Overrides:
- Source:
onBeforeRemoveChild :OnRemoveChildComponentCallback
When before remove child callback function.
Type:
- Overrides:
- Source:
onCopy :OnCopyComponentCallback
When copy callback function.
Type:
- Overrides:
- Source:
onExport :OnExportComponentCallback
When export data.
Type:
- Overrides:
- Source:
onImport :OnImportComponentCallback
When import data.
Type:
- Overrides:
- Source:
onInit :OnInitComponentCallback
When initialize callback function.
Type:
- Overrides:
- Source:
onLoadResource :OnLoadResourceComponentCallback
When load resource callback function.
Type:
- Overrides:
- Source:
onParentChange :OnParentChangeComponentCallback
When change parent callback function.
Type:
- Overrides:
- Source:
onRefresh :OnRefreshComponentCallback
When refresh callback function.
Type:
- Overrides:
- Source:
onResize :OnResizeComponentCallback
When resize callback function.
Type:
- Overrides:
- Source:
onUnloadResource :OnUnloadResourceComponentCallback
When unload resource callback function.
Type:
- Overrides:
- Source:
onUpdate :OnUpdateComponentCallback
When update callback function.
Type:
- Overrides:
- Source:
onVisibleChange :OnVisibleChangeComponentCallback
When visible change callback function.
Type:
- Overrides:
- Source:
screenSpaceAmbientOcclusion :ScreenSpaceAmbientOcclusion
Get screen space ambient occlusion.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.screenSpaceAmbientOcclusion.enable = true;
// @expect(app.camera.postEffect.screenSpaceAmbientOcclusion.enable == true)
screenSpaceReflection :ScreenSpaceReflection
Get screen space reflection.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.screenSpaceReflection.enable = true;
// @expect(app.camera.postEffect.screenSpaceReflection.enable == true)
temporalSuperSampling :TemporalSuperSampling
Get temporal super sampling.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.temporalSuperSampling.enable = true;
// @expect(app.camera.postEffect.temporalSuperSampling.enable == true)
vignetting :Vignetting
Get vignetting.
Type:
Example
let app = THING.App.current
app.camera.postEffect.config.vignetting.enable = true;
// @expect(app.camera.postEffect.vignetting.enable == true)
Methods
onAdd(object)
When add component.
Parameters:
Name | Type | Description |
---|---|---|
object |
THING.BaseObject | The object. |
- Overrides:
- Source:
onRemove()
When remove component.
- Overrides:
- Source: