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

DepthCopyMaterial

Extends:

three~ShaderMaterial → DepthCopyMaterial

A depth copy shader material.

Constructor Summary

Public Constructor
public

Constructs a new depth copy material.

Member Summary

Public Members
public

Method Summary

Public Methods
public

Returns the current input depth packing.

public

Returns the depth copy mode.

public

Returns the current output depth packing.

public

Sets the input depth packing.

public

Sets the depth copy mode.

public

Sets the output depth packing.

Public Constructors

public constructor() source

Constructs a new depth copy material.

Public Members

public needsUpdate: boolean source

Public Methods

public getInputDepthPacking(): Number source

Returns the current input depth packing.

Return:

Number

The input depth packing.

public getMode(): DepthCopyMode source

Returns the depth copy mode.

Return:

DepthCopyMode

The depth copy mode.

public getOutputDepthPacking(): Number source

Returns the current output depth packing.

Return:

Number

The output depth packing.

public setInputDepthPacking(value: Number) source

Sets the input depth packing.

Params:

NameTypeAttributeDescription
value Number

The new input depth packing.

public setMode(value: DepthCopyMode) source

Sets the depth copy mode.

Params:

NameTypeAttributeDescription
value DepthCopyMode

The new mode.

public setOutputDepthPacking(value: Number) source

Sets the output depth packing.

Params:

NameTypeAttributeDescription
value Number

The new output depth packing.