Lighting Discussion

@HMBM47’s Lighting mod for HITMAN 2


Using 3Dmigoto I was able to pinpoint 4 different shaders that contribute to the bloom.
Disclaimer: Might not work with AMD cards, Google for solution if you have issues.

Update 1.1:

  • ShaderFixes folder and d3dx.ini have been configured so the values are between 0 and 1.
    No dividing by 6000 nonsense to turn off an effect. Math…:upside_down_face:
  • Key 5 is configured to cycle between preferred setting, everything off except rays and fog, everything off, and everything on.

Update 1.2

  • Shaderfixes were updated for the 10-22-2019 update of Hitman 2.

Directions:
Extract files inside the x64 folder to the HITMAN 2 Retail folder.
Detailed directions:

  1. Open HITMAN2-3Dmigoto-BloomConfigure-v1.1.rar file using your preferred .rar opening program.
    (7zip was used to make the file. https://www.7-zip.org/ )
  2. Open the x64 folder within the .rar file.
  3. Select all files and folder and extract them to the HITMAN2 Retail folder.
    (Default install location: C:\Program Files\Steam\SteamApps\common\HITMAN2\Retail)

Notes:
There’s already a d3dcompiler_46.dll file in the HITMAN 2 directory, and I believe they’re identical, but I made a backup of the original and use the one provided with the program anyway.
I’m also not sure about the “loader” folder, but since the original also included it I’ve kept it intact. (for reasons :roll_eyes: )

Default keys:
F10: Reloads Shaders (After you’ve made changes to the d3dx.ini file, just hit this key, no need to reset the game.)

The below keys can be used to gradually decrease the default values so you can decide which value you like best (can be handy for Ansel too), and based on how many times you press the key (numbers are listed in the d3dx.ini), you can configure the value in d3dx.ini to your liking.

1: Bloom - x

2: Lens Flare - y

3: Direct light shine - w

4: Sun Rays and Depth Fog - z - When off this makes the outside look clear when looking through a window, but when outside it looks very unnatural.

5: Cycles between my preferred settings, everything off except rays and fog, everything off, and everything on.

In d3dx.ini for one preferred preset you can change the values just underneath [Constants].
For multiple presets you can configure Key 5 (I have it to cycle between 4, but numbers can be added or subtracted as desired).
You can also create additional keys to do whatever, go crazy! :crazy_face:

I THINK the way everything is written just underneath [Constants] is self explanatory and I made comments where needed, but if there are any questions hit me up! :slightly_smiling_face:

My preferred settings were based on the very sunny Sapienza and Whittleton Creek and I feel that perhaps they MIGHT not be 100% right for darker levels. If you feel that certain values work better for darker levels post the x,y,w,z values here so I (and others) can check them out. :wink:

image

image

image

image

7 Likes