BokehMaterial
Extends:
Implements:
A bokeh disc blur material.
This material should be applied twice in a row, with fill
mode enabled for the second pass. Enabling the
foreground
option causes the shader to combine the near and far CoC values around foreground objects.
Constructor Summary
Public Constructor | ||
public |
constructor(fill: Boolean, foreground: Boolean) Constructs a new bokeh material. |
Member Summary
Public Members | ||
public set |
cocBuffer: Texture The circle of confusion buffer. |
|
public set |
inputBuffer: Texture The input buffer. |
|
public get |
The blur scale. |
|
public set |
|
Method Summary
Public Methods | ||
public |
this method was deprecated. Use scale instead.
Returns the blur scale. |
|
public |
setCoCBuffer(value: Texture) this method was deprecated. Use cocBuffer instead.
Sets the circle of confusion buffer. |
|
public |
setInputBuffer(value: Texture) this method was deprecated. Use inputBuffer instead.
Sets the input buffer. |
|
public |
this method was deprecated. Use scale instead.
Sets the blur scale. |
|
public |
Sets the size of this object. |
|
public |
setTexelSize(x: Number, y: Number) this method was deprecated. Use setSize() instead.
Sets the texel size. |
Public Constructors
Public Members
public set scale source
Public Methods
public getScale(value: *): Number source
Returns the blur scale.
Params:
Name | Type | Attribute | Description |
value | * |
public setCoCBuffer(value: Texture) source
Sets the circle of confusion buffer.
Params:
Name | Type | Attribute | Description |
value | Texture | The buffer. |
public setInputBuffer(value: Texture) source
Sets the input buffer.
Params:
Name | Type | Attribute | Description |
value | Texture | The buffer. |
public setScale(value: Number) source
Sets the blur scale.
Params:
Name | Type | Attribute | Description |
value | Number | The scale. |