Garry's Mod

Garry's Mod

235 ratings
[Reshade Enhancement] Force-A-Depth
2
   
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, 2024 @ 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
44 Comments
B. Freeman 29 Jun, 2023 @ 9:31am 
So mwbase is fucked with this mod even with proper install, but hey this mod pretty good!
+=Heavy-iron=+ 11 Jun, 2023 @ 12:11pm 
so when cl_enable_dof is on i can see the npcs and stuff but the shadows like from lamps and env_sun dont show up
certainly and boldly black  [author] 11 Jun, 2023 @ 11:52am 
should be above 90
+=Heavy-iron=+ 11 Jun, 2023 @ 11:51am 
oh maybe its my dxlevel then
certainly and boldly black  [author] 11 Jun, 2023 @ 11:49am 
works fine for me idk
+=Heavy-iron=+ 11 Jun, 2023 @ 11:47am 
entity shadows get removed for some reason in csm
satan's daughter 3 Jun, 2023 @ 8:14am 
Thanks for the response
certainly and boldly black  [author] 3 Jun, 2023 @ 2:06am 
some hooks and functions that the gmod devs implemented make this possible, so yea in its current form it's only for gmod.
satan's daughter 2 Jun, 2023 @ 6:35pm 
Curious,can you hack this onto good old HL2 in some way shape or form or is this GMod only thanks to LUA reqs?
throw bricks at cop cars 2 Jun, 2023 @ 12:56pm 
is this a steam port of reshader? im assuming it is