Home Reference Source
import {GaussianBlurMaterial} from 'postprocessing'
public class | source

GaussianBlurMaterial

Extends:

three~ShaderMaterial → GaussianBlurMaterial

Implements:

An optimized Gaussian convolution shader material.

References:

Filip Strugar, Intel, 2014: An investigation of fast real-time GPU-based image blur algorithms

Constructor Summary

Public Constructor
public

constructor(options: Object)

Constructs a new convolution material.

Member Summary

Public Members
public get

direction: Vector2

The blur direction.

public set

inputBuffer: Texture

The input buffer.

public get

The kernel size.

public set
public
public get

The blur kernel scale.

public set

Method Summary

Public Methods
public

setSize(width: Number, height: Number)

Sets the size of this object.

Public Constructors

public constructor(options: Object) source

Constructs a new convolution material.

Params:

NameTypeAttributeDescription
options Object
  • optional

The options.

options.kernelSize Number
  • optional
  • default: 35

The kernel size.

Public Members

public get direction: Vector2 source

The blur direction.

public set inputBuffer: Texture source

The input buffer.

public get kernelSize: Number source

The kernel size.

public set kernelSize source

public needsUpdate: boolean source

public get scale: Number source

The blur kernel scale. Values greater than 1.0 may introduce artifacts.

public set scale source

Public Methods

public setSize(width: Number, height: Number) source

Sets the size of this object.

Params:

NameTypeAttributeDescription
width Number

The width.

height Number

The height.