Fix regression in lights/shadows setup from 1a88fefd76
This commit is contained in:
@@ -19,7 +19,6 @@ PointLight::PointLight(const SpawnParams& params)
|
|||||||
_direction = Float3::Forward;
|
_direction = Float3::Forward;
|
||||||
_sphere = BoundingSphere(Vector3::Zero, _radius);
|
_sphere = BoundingSphere(Vector3::Zero, _radius);
|
||||||
BoundingBox::FromSphere(_sphere, _box);
|
BoundingBox::FromSphere(_sphere, _box);
|
||||||
_drawCategory = SceneRendering::SceneDrawAsync;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float PointLight::ComputeBrightness() const
|
float PointLight::ComputeBrightness() const
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ SpotLight::SpotLight(const SpawnParams& params)
|
|||||||
const float boundsRadius = Math::Sqrt(1.25f * _radius * _radius - _radius * _radius * _cosOuterCone);
|
const float boundsRadius = Math::Sqrt(1.25f * _radius * _radius - _radius * _radius * _cosOuterCone);
|
||||||
_sphere = BoundingSphere(GetPosition() + 0.5f * GetDirection() * _radius, boundsRadius);
|
_sphere = BoundingSphere(GetPosition() + 0.5f * GetDirection() * _radius, boundsRadius);
|
||||||
BoundingBox::FromSphere(_sphere, _box);
|
BoundingBox::FromSphere(_sphere, _box);
|
||||||
_drawCategory = SceneRendering::SceneDrawAsync;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float SpotLight::ComputeBrightness() const
|
float SpotLight::ComputeBrightness() const
|
||||||
|
|||||||
Reference in New Issue
Block a user