Welcome, Guest.
Username: Password: Remember me

TOPIC: mastodof

mastodof 1 year 8 months ago #1

hi please how to attach the dof of MATSODOF When I removed the auto focus and dof full screens I want to attach it to the bottom

//MATSO DEPTH OF FIELD
#define USE_CHROMA_DOF 1 //[0 or 1] Enables Chromatic Abberation.
#define USE_SMOOTH_DOF 1 //[0 or 1] Enables smoother DOF
#define USE_BOKEH_DOF 1 //[0 or 1] Enables Bokeh DOF. Disabling it screws the shape up, leave it on
#define USE_AUTOFOCUS 0 //[0 or 1] Enables Autofocus
#define CHROMA_POW 65.0 //[10 to 100] Controls amount of chromatic abberation
#define DOF_SCALE 2356.1944901923449288469825374596 //LEAVE IT
#define FIRST_PASS 2 //LEAVE IT
#define SECOND_PASS 3 //LEAVE IT
#define THIRD_PASS 0 //LEAVE IT
#define FOURTH_PASS 1 //LEAVE IT
#define DOF(sd,sf) fApertureScale * smoothstep(fApertureBias, fApertureCutoff, abs(sd - sf)) //LEAVE IT
#define fvChroma float3(0.995, 1.000, 1.005) //Displacement of colors for chromatic abberation. 1.0 is original position
#define fBaseRadius 0.9
#define fFalloffRadius 1.8
#define fChromaPower 1.0
#define fvTexelSize float2(1.0 / 1920.0, 1.0 / 1080.0)
#define fFocusBias 0.045
#define fApertureScale 0.004
#define fApertureCutoff 0.25
#define fApertureBias 0.07
#define fBokehCurve 8.0
#define fBokehLight 0.012
Last Edit: 1 year 8 months ago by huss93.
The administrator has disabled public write access.

mastodof 1 year 8 months ago #2

  • jmp909
  • jmp909's Avatar
  • Offline
  • Posts: 135
  • Thank you received: 48
If I understand correctly, you want to move the focus point?

I think Matso was ported from Skyrim where the focal point was always in the middle of the screen for the purposes of this DOF.

you'll have to get someone to adapt the main process function for it .

or use a different DOF that allows you to change the focus point..

eg petka
#define focus   		float2(0.5,0.5) //[0.0 to 1.0] Screen coordinates of focus point. First value is horizontal, second value is vertical position. 0 is left/upper, 1 is right/lower.

or gp65cj042
#define	FocusPoint 		float2(0.5, 0.5); //[0.0 to 1.0] Screen coordinates of focus point. First value is horizontal, second value is vertical position. 0 is left/upper, 1 is right/lower.
The administrator has disabled public write access.