mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-25 16:18:57 +08:00
added default Additive BlendMode
This commit is contained in:
parent
8add71003c
commit
7477cda527
|
@ -16,7 +16,7 @@ namespace Blah
|
|||
Normal,
|
||||
|
||||
// Ignores the texture color but still uses transparency, essentially
|
||||
// drawing the "shape" of the texture a solid color
|
||||
// drawing the "shape" of the texture as a solid color
|
||||
Wash
|
||||
};
|
||||
|
||||
|
|
|
@ -115,9 +115,8 @@ namespace Blah
|
|||
{
|
||||
// Normal, pre-multiplied, Blend Mode
|
||||
static const BlendMode Normal;
|
||||
|
||||
// Subtractive Blend Mode
|
||||
static const BlendMode Subtract;
|
||||
static const BlendMode Additive;
|
||||
|
||||
BlendOp color_op;
|
||||
BlendFactor color_src;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user