There's no depth buffer access through reshade, but we can sample the depth buffer in the postfx.fx file that comes with the game. Is there any way to bridge between this postfx.fx and reshade's data?
pastebin.com/vWgdz17Q
this is Warband's postfx.fx. I'd worry more about posting it, but the sources for all the other shaders are freely available online, so.. meh.
pastebin.com/h28S8yJ5
here's the include that it, well, #includes.
The samplers the postfx.fx file has access to are as follows:
fx_ReflectionTextureSampler_RegisterS s0
fx_EnvTextureSampler_RegisterS s1
fx_Diffuse2Sampler_RegisterS s2
fx_NormalTextureSampler_RegisterS s3
fx_SpecularTextureSampler_RegisterS s4
fx_DepthTextureSampler_RegisterS s5
fx_CubicTextureSampler_RegisterS s6
fx_ShadowmapTextureSampler_RegisterS s7
fx_ScreenTextureSampler_RegisterS s8
fx_MeshTextureSampler_RegisterS s9
fx_ClampedTextureSampler_RegisterS s10
fx_FontTextureSampler_RegisterS s11
fx_CharacterShadowTextureSampler_RegisterS s12
fx_MeshTextureSamplerNoFilter_RegisterS s13
fx_DiffuseTextureSamplerNoWrap_RegisterS s14
fx_GrassTextureSampler_RegisterS s15