Types/BlendMode

From Official Factorio Wiki
Revision as of 11:33, 4 May 2020 by Bilka (talk | contribs) (Split into own page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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