Skip to content

Commit bd0edd6

Browse files
committed
Drastically reduced linear light falloff light volume.
1 parent da0540d commit bd0edd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BrotBoxEngine/PointLight.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ float bbe::PointLight::getLightRadius() const
2020
case LightFalloffMode::LIGHT_FALLOFF_NONE:
2121
return 1000000.f;
2222
case LightFalloffMode::LIGHT_FALLOFF_LINEAR:
23-
radius = /*(1 / x )^(1/2.2) < (1 / 255)*/ 196964.699f * lightStrength;
23+
radius = /*(1 / x )^(1/2.2) < (1 / 255)*/ 500 * lightStrength;
2424
break;
2525
case LightFalloffMode::LIGHT_FALLOFF_SQUARED:
2626
radius = /*(1 / x²)^(1/2.2) < (2 / 255)*/ 25 * lightStrength;
@@ -36,7 +36,7 @@ float bbe::PointLight::getLightRadius() const
3636

3737
if (radius > 10000)
3838
{
39-
return 1000000.f;
39+
return 10000;
4040
}
4141

4242
return radius;

0 commit comments

Comments
 (0)