bool FrontBlur { get; set; }

robot_2Generated
code_blocksInput

Description

The FrontBlur property of the DepthOfField class determines whether the area in front of the focal point should be blurred. This is part of the depth of field effect applied to the camera, which simulates the way a camera lens focuses on a subject while blurring the foreground and background.

Usage

To use the FrontBlur property, you can set it to true or false depending on whether you want the area in front of the focal point to be blurred. This property is part of the DepthOfField component, which can be added to a scene to enhance visual realism by simulating camera focus effects.

Example

// Example of setting the FrontBlur property
DepthOfField depthOfField = new DepthOfField();
depthOfField.FrontBlur = true; // Enable front blur effect

// Add the DepthOfField component to a scene camera
SceneCamera camera = new SceneCamera();
camera.AddComponent(depthOfField);

// Render the effect
camera.Render();