BlendMode
Defined in: render/blend.ts:12
Mirrors the engine’s BlendMode (src/esengine/renderer/draw/BlendMode.hpp) — the
values are serialized into material assets, so they are fixed.
Enumeration Members
Section titled “Enumeration Members”Additive
Section titled “Additive”Additive:
1
Defined in: render/blend.ts:16
SrcAlpha, One — glow, particles.
Darken
Section titled “Darken”Darken:
7
Defined in: render/blend.ts:28
Takes the darker pixel (GL_MIN).
Lighten
Section titled “Lighten”Lighten:
6
Defined in: render/blend.ts:26
Takes the brighter pixel (GL_MAX).
Multiply
Section titled “Multiply”Multiply:
2
Defined in: render/blend.ts:18
DstColor, OneMinusSrcAlpha — shadows, multiply.
None:
9
Defined in: render/blend.ts:36
No blending — the source replaces the destination. An opaque sprite pays nothing to read the destination it would ignore, and this is the only mode a draw may write depth in, since a blended one must stay in painter’s order.
Normal
Section titled “Normal”Normal:
0
Defined in: render/blend.ts:14
SrcAlpha, OneMinusSrcAlpha — the default.
Overlay
Section titled “Overlay”Overlay:
8
Defined in: render/blend.ts:30
Screen on light, Multiply on dark; requires shader support.
PmaAdditive
Section titled “PmaAdditive”PmaAdditive:
5
Defined in: render/blend.ts:24
One, One — additive with a premultiplied-alpha source.
PremultipliedAlpha
Section titled “PremultipliedAlpha”PremultipliedAlpha:
4
Defined in: render/blend.ts:22
One, OneMinusSrcAlpha — for premultiplied-alpha sources.
Screen
Section titled “Screen”Screen:
3
Defined in: render/blend.ts:20
One, OneMinusSrcColor — lighten.