mirror of
https://github.com/NoelFB/blah.git
synced 2026-11-10 00:35:14 +08:00
added default Additive BlendMode
This commit is contained in:
1 parent
8add71003c
commit
7477cda527
3 files changed
+14
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user