Welcome, Guest.
Username: Password: Remember me

TOPIC: Mount and Blade Warband workaround?

Mount and Blade Warband workaround? 2 years 3 weeks ago #1

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
Last Edit: 2 years 3 weeks ago by drgoat.
The administrator has disabled public write access.

Mount and Blade Warband workaround? 2 years 2 weeks ago #2

No. The sampler indices are only useful at the exact spot in the render pipeline the game renders its postfx.fx file. ReShade renders much later, at which point they were long overwritten with other data.
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: drgoat