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

TiltShiftBlurMaterial

Extends:

three~ShaderMaterialKawaseBlurMaterial → TiltShiftBlurMaterial

Indirect Implements:

A tilt shift blur material.

Constructor Summary

Public Constructor
public

constructor(options: Object)

Constructs a new tilt shift blur material.

Member Summary

Public Members
public get

The softness of the focus area edges.

public set
public get

The relative size of the focus area.

public set
public
public
public get

The relative offset of the focus area.

public set
public get

The rotation of the focus area in radians.

public set
public

Method Summary

Public Methods
public

setSize(width: Number, height: Number)

Sets the size of this object.

Inherited Summary

From class KawaseBlurMaterial
public set

inputBuffer: Texture

The input buffer.

public get

The current kernel.

public set
public get

The kernel sequence for the current kernel size.

public get

The blur scale.

public set
public
public

The kernel size.

public
this method was deprecated. Implementation detail, removed with no replacement.

Returns the kernel.

public
this method was deprecated. Use scale instead.

Returns the blur scale.

public

setInputBuffer(value: Texture)

this method was deprecated. Use inputBuffer instead.

Sets the input buffer.

public

setKernel(value: Number)

this method was deprecated. Use kernel instead.

Sets the current kernel.

public

setScale(value: *): Number

this method was deprecated. Use scale instead.

Sets the blur scale.

public

setSize(width: Number, height: Number)

Sets the size of this object.

public
this method was deprecated. Use setSize() instead.

Sets the texel size.

Public Constructors

public constructor(options: Object) source

Constructs a new tilt shift blur material.

Override:

KawaseBlurMaterial#constructor

Params:

NameTypeAttributeDescription
options Object
  • optional

The options.

options.offset Number
  • optional
  • default: 0.0

The relative offset of the focus area.

options.rotation Number
  • optional
  • default: 0.0

The rotation of the focus area in radians.

options.focusArea Number
  • optional
  • default: 0.4

The relative size of the focus area.

options.feather Number
  • optional
  • default: 0.3

The softness of the focus area edges.

Public Members

public get feather: Number source

The softness of the focus area edges.

public set feather source

public get focusArea: Number source

The relative size of the focus area.

public set focusArea source

public fragmentShader: * source

Override:

KawaseBlurMaterial#fragmentShader

public kernelSize: * source

The kernel size.

Override:

KawaseBlurMaterial#kernelSize

public get offset: Number source

The relative offset of the focus area.

public set offset source

public get rotation: Number source

The rotation of the focus area in radians.

public set rotation source

public vertexShader: * source

Public Methods

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

Sets the size of this object.

Override:

KawaseBlurMaterial#setSize

Params:

NameTypeAttributeDescription
width Number

The width.

height Number

The height.