Fix regression in lights/shadows setup from 1a88fefd76

This commit is contained in:
Wojtek Figat
2025-09-09 23:53:28 +02:00
parent 5e52bf6469
commit b537a80031
2 changed files with 0 additions and 2 deletions

View File

@@ -19,7 +19,6 @@ PointLight::PointLight(const SpawnParams& params)
_direction = Float3::Forward;
_sphere = BoundingSphere(Vector3::Zero, _radius);
BoundingBox::FromSphere(_sphere, _box);
_drawCategory = SceneRendering::SceneDrawAsync;
}
float PointLight::ComputeBrightness() const

View File

@@ -27,7 +27,6 @@ SpotLight::SpotLight(const SpawnParams& params)
const float boundsRadius = Math::Sqrt(1.25f * _radius * _radius - _radius * _radius * _cosOuterCone);
_sphere = BoundingSphere(GetPosition() + 0.5f * GetDirection() * _radius, boundsRadius);
BoundingBox::FromSphere(_sphere, _box);
_drawCategory = SceneRendering::SceneDrawAsync;
}
float SpotLight::ComputeBrightness() const