BlendMode
Extends:
A blend mode.
Constructor Summary
Public Constructor | ||
public |
constructor(blendFunction: BlendFunction, opacity: Number) Constructs a new blend mode. |
Member Summary
Public Members | ||
public get |
The blend function. |
|
public set |
|
|
public |
opacity: Uniform A uniform that controls the opacity of this blend mode. |
Method Summary
Public Methods | ||
public |
this method was deprecated. Use blendFunction instead.
Returns the blend function. |
|
public |
getOpacity(): Number Returns the opacity. |
|
public |
Returns the blend function shader code. |
|
public |
setBlendFunction(value: BlendFunction) this method was deprecated. Use blendFunction instead.
Sets the blend function. |
|
public |
setOpacity(value: Number) Sets the opacity. |
Public Constructors
public constructor(blendFunction: BlendFunction, opacity: Number) source
Constructs a new blend mode.
Params:
Name | Type | Attribute | Description |
blendFunction | BlendFunction | The blend function. |
|
opacity | Number | The opacity of the color that will be blended with the base color. |
Public Members
public set blendFunction source
public opacity: Uniform source
A uniform that controls the opacity of this blend mode.
TODO Add opacity accessors for uniform value.
Public Methods
public getBlendFunction(): BlendFunction source
Returns the blend function.
public setBlendFunction(value: BlendFunction) source
Sets the blend function.
Params:
Name | Type | Attribute | Description |
value | BlendFunction | The blend function. |