blendState beta
Function of @v12-engine/render
ts
blendState: (mode: BlendMode) => GPUBlendStateThe card's state for a way of blending, as Babylon's engine had them: alpha (ALPHA_COMBINE), add (ALPHA_ADD: the source times its alpha, added), multiply (ALPHA_MULTIPLY), and premultiplied, which serves the first two from one shader: a fragment that writes rgb * a with a is laid over, with 0 it is added. untoned: laid over as premultiplied is, and the main view's alpha left the share of the pixel that is not its (a times less): the finish tone maps that share alone and leaves the rest as drawn (the words in the world: post/shaders.ts finish). For the main view alone, whose alpha is otherwise 1 throughout