Math: Add M_SQRT3 constant, fix sphere radius calculations
Former-commit-id: 71ac4d3522f427fda60a0e71d76eca7558539187
This commit is contained in:
@@ -194,7 +194,7 @@ void NzLight::MakeBoundingVolume() const
|
||||
|
||||
case nzLightType_Point:
|
||||
{
|
||||
NzVector3f radius(m_radius); ///FIXME: Incorrect
|
||||
NzVector3f radius(m_radius * M_SQRT3);
|
||||
m_boundingVolume.Set(-radius, radius);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user