Classic blend mixer

Continuing the discussion from Blend (Mixer) problems:

what is the native way in gamma to overlay layers without the loss in alpha ?

blend question.vl (11.3 KB)

just to make sure i understand correctly what you mean with “native way” for blending:

  • Blending can be done nativly by the GPU when drawing a layer on top of previously drawn content - this can be configured with a BlendStateOperation in the Stride.Rendering pipeline
    • has less configurability but is more efficient
  • Blending can be done in a shader (like the Blend node in your example)
    • much more versatile and depending on your usecase you can choose your own way of handling alpha by writing your own variant).

if you haven’t already, check out VL.Addons.Stride, which contains additional nodes for both points and may work more in the way you are used to (e.g. Blend (Stride.TextureFX.Mixer)) without having to write your own