new DepthOfFieldEffect()
Depth of field effect class. The depth of field effect simulates the optical imaging effect of a camera, where the image is relatively clear in the focused area and gradually blurs in areas away from the focus. The depth of field effect has a stronger sense of lens, which can focus the observer's attention on the focused area, and a large depth of field can shape the macro model effect.
Members
-
blurRadiusNumber
-
Get or set the blur radius outside the focus.
- Default Value: 10.0
focalDistanceNumber
Get or set the focal length of the camera, and users can click on the area to automatically focus.
- Default Value: 50.0
focalRangeNumber
Obtain or set the fully focused area range, where objects within this range are completely clear and not blurry.
- Default Value: 20.0
fStopNumber
Get or set the aperture F value of the camera lens, the smaller the value, the shallower the depth of the scene.
- Default Value: 2.8
showBoolean
Get or set whether to enable depth of field effect.
- Default Value: false