CircleOfConfusionMaterial
Extends:
A Circle of Confusion shader material.
Constructor Summary
| Public Constructor | ||
| public |
constructor(camera: Camera) Constructs a new CoC material. |
|
Member Summary
| Public Members | ||
| public set |
depthBuffer: Texture The depth buffer. |
|
| public set |
depthPacking: DepthPackingStrategies The depth packing strategy. |
|
| public get |
this get was deprecated. Renamed to focusRange.
The focal length. |
|
| public set |
|
|
| public get |
The focus distance. |
|
| public set |
|
|
| public get |
The focus range. |
|
| public set |
|
|
| public |
|
|
| public get |
The focus distance in world units. |
|
| public set |
|
|
| public get |
The focus range in world units. |
|
| public set |
|
|
Method Summary
| Public Methods | ||
| public |
adoptCameraSettings(camera: Camera) this method was deprecated. Use copyCameraSettings instead.
Copies the settings of the given camera. |
|
| public |
copyCameraSettings(camera: Camera) Copies the settings of the given camera. |
|
| public |
getFocalLength(value: *): Number this method was deprecated. Use focusRange instead.
Returns the focal length. |
|
| public |
getFocusDistance(value: *): Number this method was deprecated. Use focusDistance instead.
Returns the focus distance. |
|
| public |
setDepthBuffer(buffer: Texture, depthPacking: DepthPackingStrategies) this method was deprecated. Use depthBuffer and depthPacking instead.
Sets the depth buffer. |
|
| public |
setFocalLength(value: Number) this method was deprecated. Use focusRange instead.
Sets the focal length. |
|
| public |
setFocusDistance(value: Number) this method was deprecated. Use focusDistance instead.
Sets the focus distance. |
|
Public Constructors
public constructor(camera: Camera) source
Constructs a new CoC material.
Params:
| Name | Type | Attribute | Description |
| camera | Camera | A camera. |
Public Members
public get focalLength: Number source
The focal length.
public set focalLength source
public set focusDistance source
public set focusRange source
public set worldFocusDistance source
public set worldFocusRange source
Public Methods
public adoptCameraSettings(camera: Camera) source
Copies the settings of the given camera.
Params:
| Name | Type | Attribute | Description |
| camera | Camera | A camera. |
public copyCameraSettings(camera: Camera) source
Copies the settings of the given camera.
Params:
| Name | Type | Attribute | Description |
| camera | Camera | A camera. |
public getFocalLength(value: *): Number source
Returns the focal length.
Params:
| Name | Type | Attribute | Description |
| value | * |
public getFocusDistance(value: *): Number source
Returns the focus distance.
Params:
| Name | Type | Attribute | Description |
| value | * |
public setDepthBuffer(buffer: Texture, depthPacking: DepthPackingStrategies) source
Sets the depth buffer.
Params:
| Name | Type | Attribute | Description |
| buffer | Texture | The depth texture. |
|
| depthPacking | DepthPackingStrategies |
|
The depth packing strategy. |
