mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 16:54:52 +01:00
Culling based on viewport for zoom levels
This commit is contained in:
@@ -171,6 +171,9 @@ void lightfx_prepare_light_list()
|
||||
sint32 posOnScreenX = entry->x - _current_view_x_front;
|
||||
sint32 posOnScreenY = entry->y - _current_view_y_front;
|
||||
|
||||
posOnScreenX >>= _current_view_zoom_front;
|
||||
posOnScreenY >>= _current_view_zoom_front;
|
||||
|
||||
if ((posOnScreenX < -128) ||
|
||||
(posOnScreenY < -128) ||
|
||||
(posOnScreenX > _pixelInfo.width + 128) ||
|
||||
|
||||
Reference in New Issue
Block a user