Garry's Mod

Garry's Mod

201 ratings
[Reshade Enhancement] Force-A-Depth
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
1.881 KB
20 Apr, 2023 @ 9:22am
15 Jan @ 12:24am
7 Change Notes ( view )

Subscribe to download
[Reshade Enhancement] Force-A-Depth

Description
Forces the depth buffer to render consistently in one place in memory at all times (even with MSAA and 3D skyboxes on), making it easier to detect using reshade generic depth plugin. You might need to select the right memory location yourself before it starts working.
Please report all inconsistencies properly and I'll try to do something about it.


IMPORTANT NOTES:
  • This tweak breaks modern warfare base viewmodels, so it was necessary to include code from their mod in this upload in order to fix whatever was causing issues. Therefore you MUST either subscribe to this mod AFTER subscribing to mwbase, or install this mod locally by downloading it with gmpublisher.
  • You may experience lower fps (-10 fps on my weakling gpu rx560).
  • This mod disables tree sway. Trees seem to sway only in the depth buffer, which can cause weird artifacts with some shaders.
  • There may be some strange rendering issues. Most of them can't be fixed because it's just source engine jank being even more janked by whatever this is.

Commands:
  • cl_enable_depth_hack (0/1) - Obvious!

Credits:
  • devonium[github.com] - inspired by his depth buffer shader example