[MOD] First-Person-Lighting

Show off your mod creations or just a work in progress.
Post Reply
User avatar
DunnyOfPenwick
Posts: 279
Joined: Wed Apr 14, 2021 1:58 am
Location: Southeast US

[MOD] First-Person-Lighting

Post by DunnyOfPenwick »

The First-Person-Lighting mod is now available for download on Nexus.
The source code is available on Github

Image
This mod:
  • Adds light-appropriate shading for first person graphics (weapons and horses)
  • Adds a throwable light source (alchemical flare)
  • Adds an optional short range grope light, so players can see the immediate surroundings
  • Adds option for increased light source realism. Torches dim when moving, are doused when submerged.

User avatar
harbinger451
Posts: 202
Joined: Mon Apr 13, 2020 4:08 pm
Contact:

Re: [MOD] First-Person-Lighting

Post by harbinger451 »

Fantastic stuff, waited a long time for this. Will the shader work on DREAM graphics as well, or just vanilla?
Image

User avatar
DunnyOfPenwick
Posts: 279
Joined: Wed Apr 14, 2021 1:58 am
Location: Southeast US

Re: [MOD] First-Person-Lighting

Post by DunnyOfPenwick »

Yup, should work fine with Dream, as well as mods that update weapon graphics.

User avatar
King of Worms
Posts: 4758
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: [MOD] First-Person-Lighting

Post by King of Worms »

Great job on this mod, I was asking for this functionality on the forums years ago, very happy to see you made it a reality!
And its surprising, as I was told numerous times, how problematic it is... and than you just... release the finished mod :geek:

User avatar
DunnyOfPenwick
Posts: 279
Joined: Wed Apr 14, 2021 1:58 am
Location: Southeast US

Re: [MOD] First-Person-Lighting

Post by DunnyOfPenwick »

I scan the area for light sources and calculate the lighting manually.
It's not pinpoint accurate, but it should be reasonably efficient and flexible.
I'm still not certain what formula Unity uses for light fall-off values, I just concocted my own.

I have noticed a bug with light bleeding through walls sometimes, I'll have to put out a fix for that.

Post Reply