mirror of
				https://github.com/NoelFB/blah.git
				synced 2025-11-04 01:41:34 +08:00 
			
		
		
		
	added default Additive BlendMode
This commit is contained in:
		@ -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