We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da0540d commit bd0edd6Copy full SHA for bd0edd6
BrotBoxEngine/PointLight.cpp
@@ -20,7 +20,7 @@ float bbe::PointLight::getLightRadius() const
20
case LightFalloffMode::LIGHT_FALLOFF_NONE:
21
return 1000000.f;
22
case LightFalloffMode::LIGHT_FALLOFF_LINEAR:
23
- radius = /*(1 / x )^(1/2.2) < (1 / 255)*/ 196964.699f * lightStrength;
+ radius = /*(1 / x )^(1/2.2) < (1 / 255)*/ 500 * lightStrength;
24
break;
25
case LightFalloffMode::LIGHT_FALLOFF_SQUARED:
26
radius = /*(1 / x²)^(1/2.2) < (2 / 255)*/ 25 * lightStrength;
@@ -36,7 +36,7 @@ float bbe::PointLight::getLightRadius() const
36
37
if (radius > 10000)
38
{
39
- return 1000000.f;
+ return 10000;
40
}
41
42
return radius;
0 commit comments