DepthOfFieldEffect
Blurs geometry outside the configured focus range.
- Creatable
Instance.new("DepthOfFieldEffect")- Inherits
- PostEffectInstance
- Replication
- Standard
Behavior
DepthOfFieldEffect blurs geometry outside the configured focus range.
Summary
Whether this post-processing effect is applied to the rendered image.
The blur intensity for geometry farther than the focus range.
The distance from the camera at which geometry is in focus.
The depth range around the focus distance that remains in focus.
The blur intensity for geometry nearer than the focus range.
Returns this instance if it is an ExecutionGroup.
Properties
Enabled
DepthOfFieldEffect.Enabled: boolean = trueWhether this post-processing effect is applied to the rendered image.
FarIntensity
DepthOfFieldEffect.FarIntensity: number = 0.75The blur intensity for geometry farther than the focus range.
FocusDistance
DepthOfFieldEffect.FocusDistance: number = 25The distance from the camera at which geometry is in focus.
InFocusRadius
DepthOfFieldEffect.InFocusRadius: number = 10The depth range around the focus distance that remains in focus.
NearIntensity
DepthOfFieldEffect.NearIntensity: number = 0.6The blur intensity for geometry nearer than the focus range.
Methods
GetExecutionGroup
DepthOfFieldEffect:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying