KawaseBlurPass
Extends:
Direct Subclass:
Indirect Implements:
A Kawase blur pass.
Provides better performance compared to GaussianBlurPass at larger kernel sizes.
Static Member Summary
Static Public Members | ||
public static get |
this get was deprecated. Use {@link Resolution.AUTO_SIZE} instead.
An auto sizing flag. |
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) Constructs a new Kawase blur pass. |
Member Summary
Public Members | ||
public get |
The blur material. |
|
public |
A copy material. |
|
public get |
this get was deprecated. Use copyMaterial.dithering instead.
Indicates whether dithering is enabled. |
|
public set |
|
|
public |
|
|
public get |
this get was deprecated. Use resolution.height instead.
The current height of the internal render targets. |
|
public set |
this set was deprecated. Use resolution.preferredHeight instead.
Sets the render height. |
|
public get |
this get was deprecated. Use blurMaterial.kernelSize instead.
The kernel size. |
|
public set |
|
|
public get |
this get was deprecated. Use blurMaterial.scale instead.
The current blur scale. |
|
public set |
|
|
public get |
this get was deprecated. Use resolution.width instead.
The current width of the internal render targets. |
|
public set |
this set was deprecated. Use resolution.preferredWidth instead.
Sets the render width. |
Protected Members | ||
protected set |
The blur material. |
Method Summary
Public Methods | ||
public |
this method was deprecated. Use blurMaterial.kernelSize instead.
Returns the kernel size. |
|
public |
this method was deprecated. Use resolution instead.
Returns the resolution settings. |
|
public |
this method was deprecated. Use resolution instead.
Returns the current resolution scale. |
|
public |
this method was deprecated. Use blurMaterial.scale instead.
Returns the current blur scale. |
|
public |
initialize(renderer: WebGLRenderer, alpha: Boolean, frameBufferType: Number) Performs initialization tasks. |
|
public |
render(renderer: WebGLRenderer, inputBuffer: WebGLRenderTarget, outputBuffer: WebGLRenderTarget, deltaTime: Number, stencilTest: Boolean) Renders the blur. |
|
public |
setKernelSize(value: KernelSize) this method was deprecated. Use blurMaterial.kernelSize instead.
Sets the kernel size. |
|
public |
setResolutionScale(scale: Number) this method was deprecated. Use resolution instead.
Sets the resolution scale. |
|
public |
this method was deprecated. Use blurMaterial.scale instead.
Sets the blur scale. |
|
public |
Updates the size of this pass. |
Inherited Summary
From class Pass | ||
public static get |
fullscreenGeometry: BufferGeometry A shared fullscreen triangle. |
|
public get |
fullscreenMaterial: Material The fullscreen material. |
|
public set |
|
|
public set |
mainCamera: Camera Sets the main camera. |
|
public set |
mainScene: Scene Sets the main scene. |
|
public get |
Sets the render to screen flag. |
|
public set |
|
|
public |
Indicates whether this pass is enabled. |
|
public |
The name of this pass. |
|
public |
Only relevant for subclassing. |
|
public |
Only relevant for subclassing. |
|
protected |
camera: Camera The camera. |
|
protected |
renderer: WebGLRenderer this member was deprecated.
The renderer. |
|
protected |
scene: Scene The scene to render. |
|
public |
dispose() Performs a shallow search for disposable properties and deletes them. |
|
public |
getDepthTexture(): Texture Returns the current depth texture. |
|
public |
getFullscreenMaterial(): Material this method was deprecated. Use fullscreenMaterial instead.
Returns the current fullscreen material. |
|
public |
initialize(renderer: WebGLRenderer, alpha: Boolean, frameBufferType: Number) Performs initialization tasks. |
|
public |
this method was deprecated. Use enabled instead.
Indicates whether this pass is enabled. |
|
public abstract |
render(renderer: WebGLRenderer, inputBuffer: WebGLRenderTarget, outputBuffer: WebGLRenderTarget, deltaTime: Number, stencilTest: Boolean) Renders this pass. |
|
public |
setDepthTexture(depthTexture: Texture, depthPacking: DepthPackingStrategy) Sets the depth texture. |
|
public |
setEnabled(value: Boolean) this method was deprecated. Use enabled instead.
Enables or disables this pass. |
|
public |
setRenderer(renderer: WebGLRenderer) this method was deprecated.
Sets the renderer |
|
public |
Sets the size. |
|
protected |
setFullscreenMaterial(value: Material) this method was deprecated. Use fullscreenMaterial instead.
Sets the fullscreen material. |
Static Public Members
Public Constructors
public constructor(options: Object) source
Constructs a new Kawase blur pass.
Override:
Pass#constructorParams:
Name | Type | Attribute | Description |
options | Object |
|
The options. |
options.kernelSize | KernelSize |
|
The blur kernel size. |
options.resolutionScale | Number |
|
The resolution scale. |
options.resolutionX | Number |
|
The horizontal resolution. |
options.resolutionY | Number |
|
The vertical resolution. |
options.width | Number |
|
Deprecated. Use resolutionX instead. |
options.height | Number |
|
Deprecated. Use resolutionY instead. |
Public Members
public get dithering: Boolean source
Indicates whether dithering is enabled.
public set dithering source
public get height: Number source
The current height of the internal render targets.
public set height: Number source
Sets the render height.
public get kernelSize: KernelSize source
The kernel size.
public set kernelSize source
public get scale: Number source
The current blur scale.
public set scale source
public get width: Number source
The current width of the internal render targets.
public set width: Number source
Sets the render width.
Protected Members
Public Methods
public getKernelSize(): KernelSize source
Returns the kernel size.
public getResolution(): Resolution source
Returns the resolution settings.
public getResolutionScale(): Number source
Returns the current resolution scale.
public getScale(): Number source
Returns the current blur scale.
public initialize(renderer: WebGLRenderer, alpha: Boolean, frameBufferType: Number) source
Performs initialization tasks.
Override:
Pass#initializepublic render(renderer: WebGLRenderer, inputBuffer: WebGLRenderTarget, outputBuffer: WebGLRenderTarget, deltaTime: Number, stencilTest: Boolean) source
Renders the blur.
Override:
Pass#renderParams:
Name | Type | Attribute | Description |
renderer | WebGLRenderer | The renderer. |
|
inputBuffer | WebGLRenderTarget | A frame buffer that contains the result of the previous pass. |
|
outputBuffer | WebGLRenderTarget | A frame buffer that serves as the output render target unless this pass renders to screen. |
|
deltaTime | Number |
|
The time between the last frame and the current one in seconds. |
stencilTest | Boolean |
|
Indicates whether a stencil mask is active. |
public setKernelSize(value: KernelSize) source
Sets the kernel size.
Larger kernels require more processing power but scale well with larger render resolutions.
Params:
Name | Type | Attribute | Description |
value | KernelSize | The kernel size. |
public setResolutionScale(scale: Number) source
Sets the resolution scale.
Params:
Name | Type | Attribute | Description |
scale | Number | The new resolution scale. |