blend
blend.<program>=<off|src dst srcA dstA>
Location: shaders.properties
Controls the alpha blending for a specific gbuffers program, and optionally per-buffer.
Replace:
<program>
with a gbuffers program
Setting the value to off
will disable alpha blending, otherwise the blending parameters are specified:
src
is the source color multiplierdst
is the destination color multipliersrcA
is the source alpha multiplierdstA
is the destination alpha multiplier
Each of the parameters should be filled with one of the following: ZERO
, ONE
, SRC_COLOR
, ONE_MINUS_SRC_COLOR
, DST_COLOR
, ONE_MINUS_DST_COLOR
, SRC_ALPHA
, ONE_MINUS_SRC_ALPHA
, DST_ALPHA
, ONE_MINUS_DST_ALPHA
, SRC_ALPHA_SATURATE
.
The default alpha blending parameters for transparent geometry are: SRC_ALPHA
, ONE_MINUS_SRC_ALPHA
, ONE
, ONE_MINUS_SRC_ALPHA
respectively.
More info on alpha blending can be found at the Khronos Wiki
Per-Buffer Blending
blend.<program>.<buffer>=<off|src dst srcA dstA>
By specifying a buffer name (e.g. colortex5) in <buffer>
you can apply the blending to a specific buffer only. Any buffers that aren’t specified will use the program’s blending attributes (see above).