Fixed a random behavior in god rays tests
Due to an uninitialized value
This commit is contained in:
parent
8d9e3fbc94
commit
652c66a2fa
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ class GodRayLightSource: public LightSource
|
|||
virtual bool getLightsAt(std::vector<LightComponent> &result, const Vector3 &location) const override
|
||||
{
|
||||
LightComponent light;
|
||||
light.altered = true;
|
||||
light.color = Color(fabs(location.x), fabs(location.y), fabs(location.z));
|
||||
result.push_back(light);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue