[SOLVED] ETS2 Invert DOF

More
6 years 6 months ago #1 by fosty
ETS2 Invert DOF was created by fosty
Hi. I have a trouble with dof i.imgur.com/kYDK1oo.jpg This is real to invert dof by Y?

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

More
6 years 6 months ago - 6 years 6 months ago #2 by crosire
Replied by crosire on topic ETS2 Invert DOF
There is no quick option to invert depth data vertically yet. But you can manually change the code to do it:
Open ReShade.fx and change the following line:
float depth = tex2D(RFX_depthColor, texcoord).x;
to this:
float depth = tex2D(RFX_depthColor, float2(texcoord.x, 1.0 - texcoord.y)).x;
Last edit: 6 years 6 months ago by crosire.
The following user(s) said Thank You: fosty

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

More
6 years 6 months ago #3 by fosty
Replied by fosty on topic ETS2 Invert DOF
Thank you so much!

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