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

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:

NameTypeAttributeDescription
depthTexture Texture
  • optional
  • default: null

A depth texture.

camera PerspectiveCamera
  • optional

A camera.

Public Methods

public adoptCameraSettings(camera: Camera) source

Adopts the settings of the given camera.

Params:

NameTypeAttributeDescription
camera Camera
  • optional
  • default: null

A camera.