Commit c46a6b24 authored by hybrid's avatar hybrid

Add default parameter to simplify setting textureBlend.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2460 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 62fc2201
......@@ -83,7 +83,7 @@ namespace video
};
//! EMT_ONETEXTURE_BLEND: pack srcFact & dstFact and Modulo to MaterialTypeParam
inline f32 pack_texureBlendFunc ( const E_BLEND_FACTOR srcFact, const E_BLEND_FACTOR dstFact, const E_MODULATE_FUNC modulate )
inline f32 pack_texureBlendFunc ( const E_BLEND_FACTOR srcFact, const E_BLEND_FACTOR dstFact, const E_MODULATE_FUNC modulate=EMFN_MODULATE_1X )
{
return (f32)(modulate << 16 | srcFact << 8 | dstFact);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment