DepthComparisonMaterial
Extends:
three~ShaderMaterial → DepthComparisonMaterial
A depth comparison shader material.
Constructor Summary
Public Constructor | ||
public |
constructor(depthTexture: Texture, camera: PerspectiveCamera) Constructs a new depth comparison material. |
Method Summary
Public Methods | ||
public |
adoptCameraSettings(camera: Camera) Adopts the settings of the given camera. |
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 Methods
public adoptCameraSettings(camera: Camera) source
Adopts the settings of the given camera.
Params:
Name | Type | Attribute | Description |
camera | Camera |
|
A camera. |