API / geotoolkit3d / postprocessing / FXAARenderPass / FXAARenderPass
postprocessing.FXAARenderPass.FXAARenderPass
This class implements fast approximate anti-aliasing.
This solution is the fastest AA method (aside no AA at all).
It works by smoothing the image when sharp contrast differences are detected.
This can induce a slight bluriness in the image.
Deprecated
since 4.1, this class is not meant to be public.
↳
FXAARenderPass
Constructors
Methods
▸ dispose(): void
Dispose resources in this pass
void
▸ getClassName(): string
string
▸ getType(): string
Get the type of the class
Deprecated
since 4.1. Use getClassName() instead.
string
▸ isDisposed(): boolean
Return whether this pass has been disposed or not.
boolean
▸ isEnabled(): boolean
Return true if this pass is enabled.
boolean
▸ render(renderer, writeBuffer?, readBuffer?, deltaTime?, maskActive?): void
This render function will be called every time in animation loop
| Name | Type | Description |
|---|---|---|
renderer | WebGLRenderer | the webGLrender |
Optional writeBuffer | WebGLRenderTarget<Texture> | the WebGL render target to write |
Optional readBuffer | WebGLRenderTarget<Texture> | the WebGL render target to read |
Optional deltaTime | number | delta time |
Optional maskActive | boolean | the flag for stencil buffer in renderer |
void
▸ setOptions(options?): FXAARenderPass
| Name | Type |
|---|---|
Optional options | BaseRenderPassOptions & MainRenderPassOptions & SSAARenderOptions & DepthPeelingPassOptions & OutlinePassOptions & { antialias?: AntialiasOptions ; enabled?: boolean ; highlight?: { highlightedges?: boolean ; mode?: HighlightType } ; performancemetrics?: { targetcpuframetime?: number ; targetgpuframetime?: number ; updateframeperiod?: number } ; qualityrenderpass?: { enable?: boolean ; timeout?: number } } |
▸ setSize(width, height): FXAARenderPass
Set size for render target
| Name | Type | Description |
|---|---|---|
width | number | the width of render target |
height | number | the height of render target |
▸ Static getClassName(): string
string