Fix transparent particles.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@876 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
6b0daf793d
commit
ee11d66c0f
|
@ -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);
|
||||
|
||||
|
|
|
@ -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.
Loading…
Reference in New Issue