Blur
Classes
- Blur : NativeComponent
This component is used to set up a Gaussian blur effect.
Can be used in conjunction with rendering into a render target for making blurred backgrounds for UI, simulating depth of field effect (without Bokeh), etc. Disabled in editor view.
To use this component, add the following line to your project file:
require engine.core_components.blur_component // or require engine.core
Usage example:
let renderSettings = create_render_settings()
get_component(renderSettings) $(var blur : Blur?) {
blur.active = true
blur.radius = 5.0
}
- Properties:
- Blur.active: bool
- Blur.active =(value: bool)
Active flag. Allows for toggling blur on and off without removing the component.
- Arguments:
value : bool
- Blur.radius: float
- Blur.radius =(value: float)
The radius of the blur effect in screen height percents.
- Arguments:
value : float