Luna::RHI::BlendFactor
enum BlendFactor : u8
{
zero
one
src_color
one_minus_src_color
src_alpha
one_minus_src_alpha
dst_color
one_minus_dst_color
dst_alpha
one_minus_dst_alpha
src_alpha_saturated
blend_factor
one_minus_blend_factor
src1_color
one_minus_src1_color
src1_alpha
one_minus_src1_alpha
}
Specifies the blend factor used for blending.
Options
-
Returns
0.0
. -
Returns
1.0
. -
Returns
src.rgb
, which is the new generated color of the corresponding attachment. -
Returns
1.0 - src.rgb
. -
Returns
src.a
, which is the new generated alpha of the corresponding attachment. -
Returns
1.0 - src.a
. -
Returns
dst.rgb
. -
Returns
1.0 - dst.rgb
. -
Returns
dst.alpha
. -
Returns
1.0 - dst.alpha
. -
Returns
clamp(src.a, 0.0, 1.0)
. -
Returns
blend_factor
. -
Returns
1.0 - blend_factor
. -
Returns
src1.rgb
, which is the new generated color of the first color attachment. -
Returns
1.0 - src1.rgb
. -
Returns
src1.a
, which is the new generated alpha of the first color attachment. -
Returns
1.0 - src1.a
.