Fix transparent particles.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@876 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2007-08-29 21:34:18 +00:00
parent 6b0daf793d
commit ee11d66c0f
3 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,7 @@ int main()
paf->drop();
ps->setMaterialFlag(video::EMF_LIGHTING, false);
ps->setMaterialFlag(video::EMF_ZWRITE_ENABLE, false);
ps->setMaterialTexture(0, driver->getTexture("../../media/fire.bmp"));
ps->setMaterialType(video::EMT_TRANSPARENT_VERTEX_ALPHA);

View File

@ -364,6 +364,7 @@ int main()
smgr->addBillboardSceneNode(light1, core::dimension2d<f32>(60, 60));
bill->setMaterialFlag(video::EMF_LIGHTING, false);
bill->setMaterialFlag(video::EMF_ZWRITE_ENABLE, false);
bill->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
bill->setMaterialTexture(0, driver->getTexture("../../media/particlered.bmp"));

Binary file not shown.