Garry's Mod

Garry's Mod

237 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
Apr 20, 2023 @ 9:22am
Jan 15, 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
50 Comments
BaJlepa 6oJlbIIIou' eJlDaK  [author] Aug 5 @ 8:54am 
a bug that i can't fix because im abuising the source engine rendering system
bluptus Aug 4 @ 6:09pm 
why does it disable prop shadows with csm
lugtelha Jul 31 @ 6:35pm 
@Xrb94, this for reshade
Xrb94 Jul 31 @ 11:22am 
i know i sound like an idiot asking this but do i need reshade itself to use this mod
BaJlepa 6oJlbIIIou' eJlDaK  [author] Jul 25 @ 12:49pm 
i dont work on sfm. ask someone else to figure out how to do the same thing as this addon does, it's pretty simple but i wouldnt have the slightest clue how to do it for sfm
Clamp Force Jul 23 @ 5:39am 
Make this but for SFM. SFM has Python. Hopefully someone will. It works in record/F11 game mode but once rendering or viewport the depth buffer is diff.
B. Freeman Jun 29, 2023 @ 9:31am 
So mwbase is fucked with this mod even with proper install, but hey this mod pretty good!
+=Heavy-iron=+ Jun 11, 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
BaJlepa 6oJlbIIIou' eJlDaK  [author] Jun 11, 2023 @ 11:52am 
should be above 90
+=Heavy-iron=+ Jun 11, 2023 @ 11:51am 
oh maybe its my dxlevel then