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

CopyMaterial

Extends:

three~ShaderMaterial → CopyMaterial

A simple copy shader material.

Constructor Summary

Public Constructor
public

Constructs a new copy material.

Member Summary

Public Members
public get

channelWeights: Vector4 | null

Color channel weights that modulate texels from the input buffer.

public set
public
public get

depthBuffer: Texture

A depth buffer.

public set
public
public set

depthPacking: DepthPackingStrategies

The depth packing strategy of the depth buffer.

public
public
public get

inputBuffer: Texture

The input buffer.

public set
public

Method Summary

Public Methods
public

getOpacity(value: *): Number

this method was deprecated. Use opacity instead.

Returns the opacity.

public
this method was deprecated. Use inputBuffer instead.

Sets the input buffer.

public

setOpacity(value: Number)

this method was deprecated. Use opacity instead.

Sets the opacity.

Public Constructors

public constructor() source

Constructs a new copy material.

Public Members

public get channelWeights: Vector4 | null source

Color channel weights that modulate texels from the input buffer.

Set to null to disable.

public set channelWeights source

public colorWrite: * source

public get depthBuffer: Texture source

A depth buffer.

public set depthBuffer source

public depthFunc: * source

public set depthPacking: DepthPackingStrategies source

The depth packing strategy of the depth buffer.

public depthTest: * source

public depthWrite: * source

public get inputBuffer: Texture source

The input buffer.

public set inputBuffer source

public needsUpdate: boolean source

Public Methods

public getOpacity(value: *): Number source

this method was deprecated. Use opacity instead.

Returns the opacity.

Params:

NameTypeAttributeDescription
value *

Return:

Number

The opacity.

public setInputBuffer(value: Number) source

this method was deprecated. Use inputBuffer instead.

Sets the input buffer.

Params:

NameTypeAttributeDescription
value Number

The buffer.

public setOpacity(value: Number) source

this method was deprecated. Use opacity instead.

Sets the opacity.

Params:

NameTypeAttributeDescription
value Number

The opacity.