Graphics/PointLight: Fix bounding volume

This commit is contained in:
SirLynix 2023-02-26 19:04:52 +01:00
parent 7f06d8db2b
commit 36d7e98299
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ namespace Nz
inline void PointLight::UpdateBoundingVolume()
{
Vector3f extent = Vector3f(m_radius, m_radius, m_radius) * Sqrt3<float>;
BoundingVolumef boundingVolume(Boxf(-extent, extent));
BoundingVolumef boundingVolume(Boxf(-extent * 0.5f, extent));
boundingVolume.Update(m_position);
Light::UpdateBoundingVolume(boundingVolume); //< will trigger OnLightDataInvalided