Description
The RenderEffect
method is a public instance method of the Blur
class, which is part of the Sandbox namespace. This method is responsible for applying a blur effect to a given camera within a scene. It is a non-virtual, non-static method, meaning it cannot be overridden or called without an instance of the Blur
class.
Usage
To use the RenderEffect
method, you need to have an instance of the Blur
class. You can then call this method by passing a SceneCamera
object as a parameter. This will apply the blur effect to the specified camera.
Ensure that the SceneCamera
object is properly initialized and part of the scene you wish to apply the effect to.
Example
// Create an instance of the Blur class
Blur blurEffect = new Blur();
// Assume 'camera' is a valid SceneCamera object
SceneCamera camera = new SceneCamera();
// Apply the blur effect to the camera
blurEffect.RenderEffect(camera);