Mount and Blade Warband workaround?

  • drgoat
  • Topic Author
More
8 years 7 months ago - 8 years 7 months ago #1 by drgoat Mount and Blade Warband workaround? was created by drgoat
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: 8 years 7 months ago by drgoat.

Please Log in or Create an account to join the conversation.

  • crosire
More
8 years 7 months ago #2 by crosire Replied by crosire on topic Mount and Blade Warband workaround?
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.
The following user(s) said Thank You: drgoat

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.