The radius of the light is 10.0f.
Code: Select all
irr::scene::ILightSceneNode* light = smgr->addLightSceneNode(
0, irr::core::vector3df(5, 5, -5), irr::video::SColorf(1.0f, 1.0f, 1.0f), 10.0f);
light->setDebugDataVisible(irr::scene::EDS_BBOX);
But in CLightSceneNode::doLightRecalc(), the box is computed like this
Code: Select all
const f32 r = LightData.Radius * LightData.Radius * 0.5f;
BBox.MaxEdge.set( r, r, r );
BBox.MinEdge.set( -r, -r, -r );
What am i missing?