Class: DepthOfFieldPost
depth of field effect. A common post-processing effect that simulates the focusing characteristics of a camera lens.
//Configure parameters related to depth of field
let cfg = {@link Engine3D.setting.render.postProcessing.depthOfView};
cfg.near = 150;
cfg.far = 300;
cfg.pixelOffset = 1.0;
let view = new View3D();
view.scene = this.scene;
view.camera = mainCamera;
Engine3D.startRender(renderJob);
Hierarchy
PostBase
↳
DepthOfFieldPost
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new DepthOfFieldPost(): DepthOfFieldPost
Returns
Overrides
PostBase.constructor
Defined in
src/gfx/renderJob/post/DepthOfFieldPost.ts:65
Properties
rtFrame
• rtFrame: RTFrame
Defined in
src/gfx/renderJob/post/DepthOfFieldPost.ts:63
enable
• enable: boolean
= true
Inherited from
PostBase.enable
Defined in
src/gfx/renderJob/post/PostBase.ts:20
postRenderer
• postRenderer: PostRenderer
Inherited from
PostBase.postRenderer
Defined in
src/gfx/renderJob/post/PostBase.ts:21
Accessors
pixelOffset
• get
pixelOffset(): number
Returns
number
Defined in
src/gfx/renderJob/post/DepthOfFieldPost.ts:81
• set
pixelOffset(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/gfx/renderJob/post/DepthOfFieldPost.ts:86
near
• get
near(): number
Returns
number
Defined in
src/gfx/renderJob/post/DepthOfFieldPost.ts:92
• set
near(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/gfx/renderJob/post/DepthOfFieldPost.ts:97
far
• get
far(): number
Returns
number
Defined in
src/gfx/renderJob/post/DepthOfFieldPost.ts:103
• set
far(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
src/gfx/renderJob/post/DepthOfFieldPost.ts:108
Methods
onResize
▸ onResize(): void
Returns
void
Overrides
PostBase.onResize
Defined in
src/gfx/renderJob/post/DepthOfFieldPost.ts:199
destroy
▸ destroy(force?
): void
Parameters
Name | Type |
---|---|
force? | boolean |
Returns
void
Inherited from
PostBase.destroy