DepthOfFieldEffect
Handles interpolation of depth of field, which is tricky due to how Roblox implemented the shader and how it interacts with other depth of field effects.
Functions
SetFocusDistanceTarget
DepthOfFieldEffect:
SetFocusDistanceTarget
(
focusDistanceTarget:
number
,
doNotAnimate:
boolean
) →
(
)
Sets the target depth of field distance
SetInFocusRadiusTarget
DepthOfFieldEffect:
SetInFocusRadiusTarget
(
inFocusRadiusTarget:
number
,
doNotAnimate:
boolean
) →
(
)
Sets the target depth of field radius
SetNearIntensityTarget
DepthOfFieldEffect:
SetNearIntensityTarget
(
nearIntensityTarget:
number
,
doNotAnimate:
boolean
) →
(
)
Sets the near intensity target
SetFarIntensityTarget
DepthOfFieldEffect:
SetFarIntensityTarget
(
farIntensityTarget:
number
,
doNotAnimate:
boolean
) →
(
)
Sets the far intensity target
GetFocusDistanceTarget
DepthOfFieldEffect:
GetFocusDistanceTarget
(
) →
number
Retrieves the distance target
GetInFocusRadiusTarget
DepthOfFieldEffect:
GetInFocusRadiusTarget
(
) →
number
Retrieves the radius target
GetNearIntensityTarget
DepthOfFieldEffect:
GetNearIntensityTarget
(
) →
number
Retrieve the near intensity target
GetFarIntensityTarget
DepthOfFieldEffect:
GetFarIntensityTarget
(
) →
number
Retrieve the far intensity target