Optimize CPU particles drawing to support async

This commit is contained in:
Wojtek Figat
2025-08-05 09:03:47 +02:00
parent abe496fe12
commit 1a88fefd76
8 changed files with 59 additions and 41 deletions

View File

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