OpenSceneGraph/src/osg/LightSource.cpp

27 lines
542 B
C++
Raw Normal View History

#include <osg/LightSource>
2001-01-11 00:32:10 +08:00
using namespace osg;
LightSource::LightSource()
{
// switch off culling of light source nodes by default.
setCullingActive(false);
2001-01-11 00:32:10 +08:00
}
LightSource::~LightSource()
{
// ref_ptr<> automactially decrements the reference count of attached lights.
}
const bool LightSource::computeBound() const
2001-01-11 00:32:10 +08:00
{
// note, don't do anything right now as the light itself is not
// visualised, just having an effect on the lighting of geodes.
_bsphere.init();
2001-01-11 00:32:10 +08:00
_bsphere_computed = true;
return true;
2001-01-11 00:32:10 +08:00
}