Viewmodel Shading Fix - FOSE

Thread
Viewmodel Shading Fix - FOSE
Latest
Feb 23, 2026
Uploaded
Feb 22, 2026
Version
2.2
Total Files Size
97 KB
Unique DLs
0
Total DLs
0
Total Files
1

Viewmodel Shading Fix - FOSE

97 KB

Download Latest


What?

I'm on a roll with viewmodel fixes.


When Bethesda tried to mitigate floating point precision loss on viewmodel by shifting local player position, they added a mechanism to shift lights to accommodate that position change.


As we know, that thing didn't go according to the plan. So you shouldn't be surprised if I tell you, that this light offset is also broken.


While lights get correctly shifted, the eye position is not (oddly enough it is calculated correctly in Lighting30Shaders, which are used only for decals). This means that you get correct diffuse lighting, but totally incorrect specular highlights, rendering (literally) weapon super dull and often dim. If you often wondered why weapons look flat - that's why.


The other issue is exact opposite - while eye pos was missing the offset, lights attached to the player are missing due to having the offset. This means that muzzle flashes, or any other light attached to viewmodel nodes, would not cast light at the player.


Both issues, fixed.


Requires sunlight fix for it to make sense outdoors.


Pizza




Source Code

GitHub


Credits

Hitman47101

Bad video game

Comments (0)

Log in to post a comment.

This thread is open for discussion.

Be the first to leave a community review!

More from Wall_SoGB

Popular Fallout 3 Mods