Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Dec 31, 2025

This changes fixes the dynamic lights on terrain. The coordinate bounds were incorrectly calculated, which caused dynamic lights to not draw at all within a viewed area or become stuck under some conditions.

Some vehicle types do not emit dynamic lights.

Fixed Dynamic Lights on Terrain

shot_20251215_201428_1

shot_20251215_202305_4

@xezon xezon added Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker labels Dec 31, 2025
// Updates the diffuse color values in the vertices as affected by the dynamic
// lights.
// TheSuperHackers @bugfix xezon 15/12/2025 The dynamic lights are now properly
// drawn on the entirety of the drawable map region.
Copy link

@Skyaero42 Skyaero42 Dec 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest changing this to:

// TheSuperHackers @bugfix xezon 15/12/2025
// Fixed terrain dynamic lighting issues caused by incorrect coordinate bounds.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see one better than the other. Historically we did not use past tense in comments.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Draw the dynamic lights properly on the entirety of the drawable map region." perhaps?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworded the comment

@xezon xezon merged commit 5deddce into TheSuperHackers:main Jan 2, 2026
23 checks passed
@xezon xezon deleted the xezon/fix-dynamic-terrain-lights branch January 2, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terrain lights from gun fire can get stuck near roads

2 participants