× Initiating database migration review
× Database migration started
 
 
 

Blend Modes

 
 
Blend is a tag assigned to models to determine how they use the textures on the image underneath.
 
 

Syntax

ModelA.setBlend('overlay');

 
 

none


The Blending will be disabled. You would most likely use it on a solid 3D object. Using ‘none’ is much faster than other blending modes.

overlay


The default blending mode for textures that do have premultiplied alpha.



 
 

add


Adds the model’s pixels to the background but darkens the background according to the model’s alpha value. This can result in colour saturation towards white.

add2


A pure add function that does not scale pixels according to alpha. Saturation towards white will occur very quickly.


To visualise using objects with add or add2 modes, you can use "blend mode Linear Dodge (Add)" in Photoshop.



 
 

multiply


This multiplies the model and destination’s RGB pixels, and uses the model’s alpha allowing transparency.

To visualise using objects with multiply mode you can use "blend mode multiply" in Photoshop.

chromakey


Enables the chromakeying blend mode. Use the chromakey model tag to control the behavior. See video transparency with chromakey . It can also be used for images.



 
 

premult


A blending mode for textures that do not have a premultiplied alpha. This mode doesn’t handle low alpha values well, so it should be used only for models with alpha at 1.

Use this for transparent PNGs. It will remove the un-premultiplied dark halo.
 
 
Normal, alpha 1

Premult, alpha 1
 
 
Normal, alpha 0.3

Premult, alpha 0.3