The depth of field effect applies a blur to objects that are closer or further from where the camera is focusing.
Creates a new instance DepthOfFieldEffect
The scene the effect belongs to.
The depth texture of the scene to compute the circle of confusion.This must be set in order for this to function but may be set after initialization if needed.
The type of texture to be used when performing the post processing.
If compilation of the shader should not be done in the constructor. The updateEffect method can be used to compile the shader at a later time. (default: false)
Depth texture to be used to compute the circle of confusion. This must be set here or in the constructor in order for the post process to function.
F-Stop of the effect's camera. The diameter of the resulting aperture can be computed by lensSize/fStop. (default: 1.4)
The focal the length of the camera used in the effect in scene units/1000 (eg. millimeter)
Distance away from the camera to focus on in scene units/1000 (eg. millimeter). (default: 2000)
Checks if all the post processes in the effect are supported.
Max lens size in scene units/1000 (eg. millimeter). Standard cameras are 50mm. (default: 50) The diamater of the resulting aperture can be computed by lensSize/fStop.
Disposes each of the internal effects for a given camera.
The camera to dispose the effect on.
Get the current class name of the current effet
Generated using TypeDoc