blend_state_for

Function blend_state_for 

Source
pub(crate) fn blend_state_for(additive: bool) -> BlendState
Expand description

Standard MD2-style blend state for an overlay pipeline.

  • additive = false → straight alpha blending (preset opacity composes over the warp output).
  • additive = true → MD2’s additive mode where src.rgb * src.alpha is added on top of the destination. Used by b_additive_waves, b_additive (custom waves), and the additive variant of the custom-shape pipeline.