import {ConvolutionMaterial} from 'postprocessing/src/materials/ConvolutionMaterial.js'
ConvolutionMaterial
Extends:
three~ShaderMaterial → ConvolutionMaterial
An optimised convolution shader material.
This material supports dithering.
Based on the GDC2003 Presentation by Masaki Kawase, Bunkasha Games: Frame Buffer Postprocessing Effects in DOUBLE-S.T.E.A.L (Wreckless) and an article by Filip Strugar, Intel: An investigation of fast real-time GPU-based image blur algorithms
Further modified according to Apple's Best Practices for Shaders.
Constructor Summary
Public Constructor | ||
public |
constructor(texelSize: Vector2) Constructs a new convolution material. |
Member Summary
Public Members | ||
public |
The current kernel size. |
Method Summary
Public Methods | ||
public |
Returns the kernel. |
|
public |
setTexelSize(x: Number, y: Number) Sets the texel size. |
Public Constructors
public constructor(texelSize: Vector2) source
Constructs a new convolution material.
Params:
Name | Type | Attribute | Description |
texelSize | Vector2 |
|
The absolute screen texel size. |