Skip to content

UiPostEffectBlendMode

Blending behavior for a post-processing shader pass.

Overview

UiPostEffectBlendMode instructs the rendering backend how to blend the output of a shader pass into the target framebuffer:

  • REPLACE: Overwrites target pixels directly without alpha blending. Standard for intermediate ping-pong buffer passes.
  • ALPHA_BLEND: Standard transparency blending (SRC_ALPHA, ONE_MINUS_SRC_ALPHA).
  • ADDITIVE: Additive blending for glow, laser, and light bloom overlays.

Blend Mode Selection

UiPostEffectBlendMode mode = UiPostEffectBlendMode.REPLACE;
boolean blend = mode.blendEnabled();

API

UiPostEffectBlendMode::blendEnabled()

blendEnabled()

Returns true if alpha blending should be enabled by the backend.

Returns boolean: True if blending is enabled..