added default Additive BlendMode

This commit is contained in:
Noel Berry
2022-02-12 23:15:04 -08:00
parent 8add71003c
commit 7477cda527
3 changed files with 14 additions and 3 deletions

View File

@ -25,6 +25,18 @@ const BlendMode BlendMode::Subtract = BlendMode(
0xffffffff
);
const BlendMode BlendMode::Additive = BlendMode(
BlendOp::Add,
BlendFactor::SrcAlpha,
BlendFactor::One,
BlendOp::Add,
BlendFactor::SrcAlpha,
BlendFactor::One,
BlendMask::RGBA,
0xffffffff
);
VertexFormat::VertexFormat(const StackVector<VertexAttribute, 16>& attr, int str)
{
attributes = attr;