Lib.render.postfx.DepthOfField - tixl3d/tixl GitHub Wiki

DepthOfField

in Lib.render.postfx


Adds a depth of field effect.

Hint: Use a [Locator] and its DistanceToCamera output to use automatic focus distance.

Useful Ops for a PostFX Pipeline: [MotionBlur] [DepthOfField] [ChromaticAbberation] [Glow] [Grain] [Blur]


Input Parameters

Name (Relevancy & Type) Description
TextureBuffer (Texture2DRequired) -
DepthBuffer (Texture2DRequired) -
Amount (Single) Controls the intensity of the blur.

Areas that are further away from the focus point are proportionally more blurred.
FocusDistance (Single) Controls how far away from the camera the area is which is not affected by the blur.

ProTip: Use a higher "Amount" to make it easier to identify the area of your scene that are in focus. Or use a [Locator] to have a visual helper to define the FocusPoint.
BackgroundColor (Vector4) Defines the BackgroundColor.
MaxSamples (Int32) Controls the fidelity of the effect.
Higher numbers create smoother results at the cost of rendering speed.
NearFarRange (Vector2) Defines the near and far range of the scene which is affected by the effect.
Command (Command) Internal Input.

Outputs

Name Type
TextureOut T3.Core.DataTypes.Texture2D

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

⚠️ **GitHub.com Fallback** ⚠️