Welcome, Guest.
Username: Password: Remember me

TOPIC: Light DoF for ReShade 3.0

Light DoF for ReShade 3.0 2 months 2 weeks ago #1

  • luluco250
  • luluco250's Avatar
  • Offline
  • Posts: 80
  • Thank you received: 51
A lightweight (or at least that's my objective) but good-looking depth of field shader for ReShade 3.0!

Pull request to the official repository: github.com/crosire/reshade-shaders/pull/41
Right now you can just get it HERE (right-click, "Save as"/"Save link")
You just need the ReShade.fxh file in the same folder.

Features:
  • Lightweight poisson disc "bokeh" blur, ported from github.com/spite/Wagner/blob/master/frag...on-disc-blur-fs.glsl
  • Excellent depth masking, objects in front of the blur won't "leak" to the further plane.
  • Auto-Focus with: time delay, manual or mouse center.
  • Separate techniques for far and near blur.
  • Optional separable chromatic aberration for both far and near blurs.
Any feedback is well appreciated! Enjoy :)

Last Edit: 2 months 2 weeks ago by luluco250.
The administrator has disabled public write access.
The following user(s) said Thank You: fuze, Elimina, andrew, OtisInf, XIIICaesar, Abby

Light DoF for ReShade 3.0 2 months 2 weeks ago #2

  • luluco250
  • luluco250's Avatar
  • Offline
  • Posts: 80
  • Thank you received: 51
Sorry for double-posting, but I couldn't add an additional link to the first post.

Here's an animated demonstration [HD]:
The administrator has disabled public write access.
The following user(s) said Thank You: Aelius Maximus

Light DoF for ReShade 3.0 3 weeks 4 days ago #3

  • Elimina
  • Elimina's Avatar
  • Offline
  • ΞLIMINΛ
  • Posts: 329
  • Thank you received: 356
hey, I never got to try out this effect until now. Very performance friendly and it looks very natural. the Near DoF is a big improvement over the other DoFs, since it has a slight overlapping blur. Nice Job :)
The administrator has disabled public write access.

Light DoF for ReShade 3.0 2 weeks 6 days ago #4

  • OtisInf
  • OtisInf's Avatar
  • Offline
  • Posts: 122
  • Thank you received: 51
Quick question: does it blur elements in the near plane into the focus plane? (I hope so!) As the current DOF in reshade doesn't do that, so you have hard edges around elements in near plane if the element is in front of the focus plane (e.g. a pillar) Will try yours out, which is right on time as I was about to try to port one of the advanced dof's to reshade to get near plane elements to properly blur into focus plane area.

(edit)
Tried it with The Witcher 3, but the autofocus one doesn't do anything, enabling/disabling, nothing works: no dof is applied. Near / far work OK. I'd like a higher blur factor than 10, but it's OK. Could be input problem somewhere.

(edit2)
Tried to change the limit of 10 of max blur, as it's a bit too low for my tastes but couldn't get it to work as the implemented blur method isn't really affected by it. I think an additional value, e.g. a blur curve, could be helpful in the poisson blur function. It now only uses bokeh value but setting that to a higher value gives weird distortion which is a result of the poisson usage I think (works fine on lower values :))
Last Edit: 2 weeks 6 days ago by OtisInf.
The administrator has disabled public write access.