BoxBlurMaterial
Extends:
Implements:
A fast box blur material that supports depth-based bilateral filtering.
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) Constructs a new box blur material. |
Member Summary
Public Members | ||
public get |
Indicates whether bilateral filtering is enabled. |
|
public set |
|
|
public set |
depthBuffer: Texture The depth buffer. |
|
public set |
depthPacking: DepthPackingStrategies The depth packing strategy. |
|
public set |
inputBuffer: Texture The input buffer. |
|
public get |
The kernel size. |
|
public set |
|
|
public set |
The maximum amount of varying vectors. |
|
public |
|
|
public set |
normalDepthBuffer: Texture A combined normal-depth buffer. |
|
public get |
The blur scale. |
|
public set |
|
|
public get |
The bilateral filter distance threshold in world units. |
|
public set |
|
Method Summary
Public Methods | ||
public |
copyCameraSettings(camera: Camera) Copies the settings of the given camera. |
|
public |
Sets the size of this object. |
Public Members
public set bilateral source
public get kernelSize: Number source
The kernel size.
- Must be an odd number
- Kernel size 3 and 5 use optimized code paths
- Default is 5
public set kernelSize source
public set maxVaryingVectors: Number source
The maximum amount of varying vectors.
Should be synced with renderer.capabilities.maxVaryings
. Default is 8.
public set normalDepthBuffer: Texture source
A combined normal-depth buffer. Overrides depthBuffer if set.
public set scale source
public get worldDistanceThreshold: Number source
The bilateral filter distance threshold in world units.
public set worldDistanceThreshold source
Public Methods
public copyCameraSettings(camera: Camera) source
Copies the settings of the given camera.
Params:
Name | Type | Attribute | Description |
camera | Camera | A camera. |