Skip to content

Conversation

@AdamTadeusz
Copy link
Contributor

Description

It appears that when drawing entities, their origin is used as the lighting origin. Since the origins of weapons are often placed at the handle, or in the case of grenades outside the weapons model completely, some weapons can appear very dark when dropped as their origin falls through the floor. This PR sets the lighting origin of weapons to their world space center instead. While not ideal, with some really small weapons like the grenades still appearing a bit dark sometimes, it either improves or solves the issue in all cases from what I've tested.

Before:
image

After:
image2

Toolchain

  • Windows MSVC VS2022

@AdamTadeusz AdamTadeusz requested a review from a team August 23, 2025 13:29
@AdamTadeusz AdamTadeusz merged commit c874569 into NeotokyoRebuild:master Aug 23, 2025
7 checks passed
@AdamTadeusz AdamTadeusz deleted the 272_raiseWeaponLightingOrigin branch August 23, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants