Blending Modes

Misc ››
Parent Previous Next

Blending Modes


Colors from Gradients, Reflection Tint and others color modifiers are blended with the surface color by using the Blending Mode.

The Blending slider defines how much of the effect is applied. 1 fully applies the color modifier while 0 discards the effect.



Multiply

Each of the Tint channels are multiplied by the face color.

color *= Color.Lerp (Color.white, Tint, BlendingFactor);

BlendRGB

RGB channels are blended based on the BlendingFactor while Alpha remains with the original value.

color.rgb  = Color.Lerp(color.rgb, Tint.rgb, BlendingFactor);

BlendRGBA

All channels are blended based on the BlendingFactor.

color  = Color.Lerp(color, Tint, BlendingFactor);

Combine

Color and Tint are blended based on the Tint.a and the BlendingFactor

color  = Color.Lerp(color, Tint, Tint.a * BlendingFactor);


Created with the Personal Edition of HelpNDoc: Full-featured Help generator