IBlendShaderParts
interface IBlendShaderParts
A shader part for blending source and destination colors.
Summary
Properties from IBlendShaderParts
string |
|
string |
(optional) Code that declares any additional uniforms to be accepted by the BlendFilter. |
{ [key: string]: any } |
(optional) Uniforms to pass to the resulting BlendFilter. |
Public Properties
blendCode: string
The blend code that calculates the output color. The following variables are available to this code:
Variable | Type | Description (colors are usually PMA) |
---|---|---|
b_src | vec4 | Source color |
b_dst | vec4 | Destination color |
b_res | vec4 | Output / result color |
uniformCode: string
(optional) Code that declares any additional uniforms to be accepted by the BlendFilter.
If you do use this, make sure these uniforms are passed in uniforms.
uniforms: { [key: string]: any }
(optional) Uniforms to pass to the resulting BlendFilter.
Make sure to declare these in uniformCode.