IBlendShaderParts

interface IBlendShaderParts

A shader part for blending source and destination colors.

Summary


Properties from IBlendShaderParts

string
blendCode
string
uniformCode

(optional) Code that declares any additional uniforms to be accepted by the BlendFilter.

{ [key: string]: any }
uniforms

(optional) Uniforms to pass to the resulting BlendFilter.

Public Properties


blendCode BlendFilter.ts:42
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 BlendFilter.ts:28
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 BlendFilter.ts:35
uniforms: { [key: string]: any }

(optional) Uniforms to pass to the resulting BlendFilter.

Make sure to declare these in uniformCode.


Powered by webdoc!