From b537a80031d7a86f23427f6fa8a41b85a640ba35 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 9 Sep 2025 23:53:28 +0200 Subject: [PATCH] Fix regression in lights/shadows setup from 1a88fefd76daae6cddd261e02b4a3d1b396c8b05 --- Source/Engine/Level/Actors/PointLight.cpp | 1 - Source/Engine/Level/Actors/SpotLight.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/Source/Engine/Level/Actors/PointLight.cpp b/Source/Engine/Level/Actors/PointLight.cpp index d28ee3f16..607bf1bc4 100644 --- a/Source/Engine/Level/Actors/PointLight.cpp +++ b/Source/Engine/Level/Actors/PointLight.cpp @@ -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 diff --git a/Source/Engine/Level/Actors/SpotLight.cpp b/Source/Engine/Level/Actors/SpotLight.cpp index af783ce84..85b77647a 100644 --- a/Source/Engine/Level/Actors/SpotLight.cpp +++ b/Source/Engine/Level/Actors/SpotLight.cpp @@ -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