mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 16:54:52 +01:00
Reduce light intensity for zoom levels
This commit is contained in:
@@ -373,8 +373,7 @@ void lightfx_prepare_light_list()
|
||||
// log_warning("sample-count: %i, occlusion: %i", totalSamplePoints, lightIntensityOccluded / totalSamplePoints);
|
||||
|
||||
entry->lightIntensity = min(0xFF, (entry->lightIntensity * lightIntensityOccluded) / (totalSamplePoints * 100));
|
||||
|
||||
// log_warning("lightIntensityOccluded: %i, entry->lightIntensity: %i", lightIntensityOccluded, entry->lightIntensity);
|
||||
entry->lightIntensity = max(0x00, entry->lightIntensity - _current_view_zoom_front * 5);
|
||||
}
|
||||
|
||||
if (_current_view_zoom_front > 0) {
|
||||
|
||||
Reference in New Issue
Block a user