Home Reference Source
public class | source

BlendMode

A blend mode.

Constructor Summary

Public Constructor
public

constructor(blendFunction: BlendFunction, opacity: Number)

Constructs a new blend mode.

Member Summary

Public Members
public

The blend function.

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 shader code.

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 blendFunction: BlendFunction source

The blend function.

public opacity: Uniform source

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

Public Methods

public getShaderCode(): String source

Returns the blend function shader code.

Return:

String

The blend function shader code.