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

BlendMode

Extends:

three~EventDispatcher → BlendMode

A blend mode.

Constructor Summary

Public Constructor
public

constructor(blendFunction: BlendFunction, opacity: Number)

Constructs a new blend mode.

Member Summary

Public Members
public

opacity: Uniform

The opacity of the color that will be blended with the base color.

Method Summary

Public Methods
public

Returns the blend function.

public

Returns the blend function shader code.

public

Sets the blend function.

Public Constructors

public constructor(blendFunction: BlendFunction, opacity: Number) source

Constructs a new blend mode.

Params:

NameTypeAttributeDescription
blendFunction BlendFunction

The blend function to use.

opacity Number

The opacity of the color that will be blended with the base color.

Public Members

public opacity: Uniform source

The opacity of the color that will be blended with the base color.

Public Methods

public getBlendFunction(): BlendFunction source

Returns the blend function.

Return:

BlendFunction

The blend function.

public getShaderCode(): String source

Returns the blend function shader code.

Return:

String

The blend function shader code.

public setBlendFunction(blendFunction: BlendFunction) source

Sets the blend function.

Params:

NameTypeAttributeDescription
blendFunction BlendFunction

The blend function.