Fix bug with black spot appearing in nitro particles, caused by incorrect additive blending formula
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -357,7 +357,7 @@ void Material::setMaterialProperties(video::SMaterial *m) const
|
||||
// EMT_TRANSPARENT_ADD_COLOR does include vertex color alpha into account, which
|
||||
// messes up fading in/out effects. So we use the more customizable EMT_ONETEXTURE_BLEND instead
|
||||
m->MaterialType = video::EMT_ONETEXTURE_BLEND ;
|
||||
m->MaterialTypeParam = pack_texureBlendFunc(video::EBF_SRC_ALPHA, video::EBF_DST_ALPHA,
|
||||
m->MaterialTypeParam = pack_texureBlendFunc(video::EBF_SRC_ALPHA, video::EBF_ONE,
|
||||
video::EMFN_MODULATE_1X, video::EAS_TEXTURE | video::EAS_VERTEX_COLOR);
|
||||
modes++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user