mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 22:13:07 +01:00
Reduced light intensity
This commit is contained in:
@@ -64,9 +64,9 @@ static uint8 _current_view_zoom_back_delay = 0;
|
||||
uint8 calc_light_intensity_lantern(sint32 x, sint32 y) {
|
||||
double distance = (double)(x * x + y * y);
|
||||
|
||||
double light = 0.09 + pow(10.0 / (1.0 + distance / 100.0), 0.55);
|
||||
double light = 0.03 + pow(10.0 / (1.0 + distance / 100.0), 0.55);
|
||||
light *= min(1.0, max(0.0f, 2.0 - sqrt(distance) / 64));
|
||||
light *= 0.15f;
|
||||
light *= 0.1f;
|
||||
|
||||
return (uint8)(min(255.0, light * 255.0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user