Welcome, Guest.
Username: Password: Remember me

TOPIC: Help me modify UI Mask

Help me modify UI Mask 6 months 1 week ago #1

Greetings! I'm a bit new to messing with shader code, so I need some help with this. Dishonored 2(and dlc) default depth buffer is actually mask for UI elements, which is good side effect that I think can be used for masking UI from SMAA for example. So here's the question: how do I modify UIMask.fx to use depthbuffer instead of png?
texture tUIMask_Mask <source="UIMask.png";> { Width = BUFFER_WIDTH; Height = BUFFER_HEIGHT; Format=TEXFORMAT; };
Thanks in a advance.
P.S. Here's some images:


The administrator has disabled public write access.

Help me modify UI Mask 6 months 1 week ago #2

Nevermind, figured it out myself. In case anyone wants to use this for Dishonored 2/DLC, just replace UIMask.fx with this code:
Warning: Spoiler! [ Click to expand ]

and use this depth buffer settings:
RESHADE_DEPTH_LINEARIZATION_FAR_PLANE=100000.0,
RESHADE_DEPTH_INPUT_IS_UPSIDE_DOWN=0,
RESHADE_DEPTH_INPUT_IS_REVERSED=0,
RESHADE_DEPTH_INPUT_IS_LOGARITHMIC=0
The administrator has disabled public write access.