#include "effects/ChaffBombs.h" #include #include "common/SpdLogger.h" ChaffBombs::ChaffBombs() { Init(); } ChaffBombs::~ChaffBombs() { } void ChaffBombs::Init() { osg::ref_ptr node = osgDB::readNodeFile("chaff_bombs.osg"); if (nullptr == node) { LOG_WARN("node is read failed, name: chaff_bombs.osg"); return; } //node->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF); addChild(node); }