Skip to main content

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(
focusDistanceTargetnumber,
doNotAnimateboolean
) → ()

Sets the target depth of field distance

SetInFocusRadiusTarget

DepthOfFieldEffect:SetInFocusRadiusTarget(
inFocusRadiusTargetnumber,
doNotAnimateboolean
) → ()

Sets the target depth of field radius

SetNearIntensityTarget

DepthOfFieldEffect:SetNearIntensityTarget(
nearIntensityTargetnumber,
doNotAnimateboolean
) → ()

Sets the near intensity target

SetFarIntensityTarget

DepthOfFieldEffect:SetFarIntensityTarget(
farIntensityTargetnumber,
doNotAnimateboolean
) → ()

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

Show raw api
{
    "functions": [
        {
            "name": "SetFocusDistanceTarget",
            "desc": "Sets the target depth of field distance",
            "params": [
                {
                    "name": "focusDistanceTarget",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "doNotAnimate",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 70,
                "path": "src/depthoffield/src/Client/DepthOfFieldEffect.lua"
            }
        },
        {
            "name": "SetInFocusRadiusTarget",
            "desc": "Sets the target depth of field radius",
            "params": [
                {
                    "name": "inFocusRadiusTarget",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "doNotAnimate",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 81,
                "path": "src/depthoffield/src/Client/DepthOfFieldEffect.lua"
            }
        },
        {
            "name": "SetNearIntensityTarget",
            "desc": "Sets the near intensity target",
            "params": [
                {
                    "name": "nearIntensityTarget",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "doNotAnimate",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 92,
                "path": "src/depthoffield/src/Client/DepthOfFieldEffect.lua"
            }
        },
        {
            "name": "SetFarIntensityTarget",
            "desc": "Sets the far intensity target",
            "params": [
                {
                    "name": "farIntensityTarget",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "doNotAnimate",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 103,
                "path": "src/depthoffield/src/Client/DepthOfFieldEffect.lua"
            }
        },
        {
            "name": "GetFocusDistanceTarget",
            "desc": "Retrieves the distance target",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 113,
                "path": "src/depthoffield/src/Client/DepthOfFieldEffect.lua"
            }
        },
        {
            "name": "GetInFocusRadiusTarget",
            "desc": "Retrieves the radius target",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 121,
                "path": "src/depthoffield/src/Client/DepthOfFieldEffect.lua"
            }
        },
        {
            "name": "GetNearIntensityTarget",
            "desc": "Retrieve the near intensity target",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 129,
                "path": "src/depthoffield/src/Client/DepthOfFieldEffect.lua"
            }
        },
        {
            "name": "GetFarIntensityTarget",
            "desc": "Retrieve the far intensity target",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 137,
                "path": "src/depthoffield/src/Client/DepthOfFieldEffect.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "DepthOfFieldEffect",
    "desc": "Handles interpolation of depth of field, which is tricky due to how Roblox implemented the shader\nand how it interacts with other depth of field effects.",
    "source": {
        "line": 7,
        "path": "src/depthoffield/src/Client/DepthOfFieldEffect.lua"
    }
}