11 const core::vector3df &position,
12 std::vector< video::ITexture* >& textures,
19 sprites_( numSprites ),
23 lifetime_( lifetime ) {
25 for (
int i = 0; i < numSprites; ++i ) {
27 sprites_[i] = mgr->addBillboardSceneNode( NULL,
28 core::dimension2df(size,size),
32 sprites_[i]->setMaterialTexture( 0, textures[ rand() % textures.size() ] );
33 sprites_[i]->setMaterialFlag( video::EMF_LIGHTING,
false );
34 sprites_[i]->setMaterialFlag( video::EMF_ZWRITE_ENABLE,
false );
35 sprites_[i]->setMaterialType( video::EMT_TRANSPARENT_ADD_COLOR );
40 mgr->addLightSceneNode(
sprites_[i], position, color, temp / 50 ) );