DYTSrouce/Source/src/effects/ChaffBombs.cpp
2024-11-22 23:11:48 +08:00

24 lines
484 B
C++

#include "effects/ChaffBombs.h"
#include <osgDB/ReadFile>
#include "common/SpdLogger.h"
ChaffBombs::ChaffBombs() {
Init();
}
ChaffBombs::~ChaffBombs() {
}
void ChaffBombs::Init() {
osg::ref_ptr<osg::Node> 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);
}