Team Fortress 2

Team Fortress 2

Cosmetic Lighting Fixes
4
24
2
14
4
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.053 KB
3 Jul, 2020 @ 6:55am
26 Feb @ 10:39am
1 Change Note ( view )

Would you like to see this item officially accepted and supported in Team Fortress 2?

Yes
No thanks /
Not interested
Ask me
again later
Description
Added in the February 18, 2025 TF2 Update!

Submission containing a code fix for the lighting sampling issues that almost all cosmetics in the game suffer.
The example images above demonstrate the bug, with the lighting sample positions visualized.

Technical Description:
All models sample their ambient lighting from a vector (named illumination position, or illumpos) which each model has.
Most cosmetics and weapons included in the game do not have a correctly positioned illumpos.
This results in discrepancies between the ambient lighting of the player model vs the cosmetics, which looks visually ugly.
In certain situations, this can put a player at a disadvantage as their cosmetics brighten up in a darkly lit room, as the illumpos extends into a different area.
The fix is simple, it overwrites the cosmetic, weapon and viewmodel lighting origins to sample from its owner's position instead, so the discrepancies no longer appear.

Part of the TF2 Community Fix-Up Pack: https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=2156577890
Popular Discussions View All (3)
2
22 Feb, 2023 @ 9:21pm
I think it's time
Человек в очках
3
12 Jan, 2022 @ 7:20pm
your doing gods work, but where is the download link?
Guv
0
19 Aug, 2020 @ 3:22pm
This needs to be added
Gear Snack