DepthComparisonMaterial
Extends:
A depth comparison shader material.
Constructor Summary
| Public Constructor | ||
| public |
constructor(depthTexture: Texture, camera: PerspectiveCamera) Constructs a new depth comparison material. |
|
Member Summary
| Public Members | ||
| public set |
depthBuffer: Texture The depth buffer. |
|
| public set |
depthPacking: DepthPackingStrategies The depth packing strategy. |
|
| public |
|
|
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 |
setDepthBuffer(buffer: Texture, depthPacking: DepthPackingStrategies) this method was deprecated. Use depthBuffer and depthPacking instead.
Sets the depth buffer. |
|
Public Constructors
public constructor(depthTexture: Texture, camera: PerspectiveCamera) source
Constructs a new depth comparison material.
Params:
| Name | Type | Attribute | Description |
| depthTexture | Texture |
|
A depth texture. |
| camera | PerspectiveCamera |
|
A camera. |
Public Members
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 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. |
