Types/BlendMode

From Official Factorio Wiki
Jump to: navigation, search

A Types/string that determines how sprites/animations should blend with the background. The possible values are listed below.

Note: Unless premul_alpha is set to false on the sprite/animation itself, Active_RGB is considered to be premultiplied with alpha.

Possible values

normal

The result color is determined with the following formula: Result = Active_RGB * Active_Alpha + Background_RGB * ( 1 - Active_Alpha )

additive

The result color is determined with the following formula: Result = Active_RGB + Background_RGB

additive-soft

The result color is determined with the following formula: Result = Active_RGB * ( 1 - Background_RGB ) + Background_RGB

multiplicative

The result color is determined with the following formula: Result = Active_RGB * Background_RGB

overwrite

The result color is determined with the following formula: Result = Active_RGBA or Background_RGBA