cohtml.GlobalBackdropBlurFilter
Provides a default implementation of IGlobalBackdropFilter that applies a blur effect to the background. This class is automatically used as a fallback when no custom filter implementation is assigned. To apply a custom effect, create a class that implements IGlobalBackdropFilter and assign with CohtmlView.OnGlobalBackdropFilterAssign
Inherits from cohtml.IGlobalBackdropFilter, IDisposable
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| GlobalBackdropBlurFilter(ViewRenderer renderer) Sets up the required compute shaders and initializes the material used for the backdrop filter. | |
| void | Resize(float width, float height) Updates the internal data structures and buffer sizes of the filter to match the specified view dimensions. This must be called whenever the target view is resized. |
| void | ApplyGlobalBackdropFilter() Executes the global backdrop filter effect for the current frame. Implementations of this method are responsible for capturing the background, applying the desired visual effect, and outputting the result to the appropriate render target or UI element. |
| void | Dispose() |
Public Properties
Section titled “Public Properties”| Name | |
|---|---|
| int | BlurRadius Gets or sets the blur radius used for the backdrop filter. Controls how many neighboring pixels are sampled during the blur pass. Larger values result in a stronger blur effect but are more expensive to compute. |
Public Functions Documentation
Section titled “Public Functions Documentation”function GlobalBackdropBlurFilter
Section titled “function GlobalBackdropBlurFilter”GlobalBackdropBlurFilter( ViewRenderer renderer)Sets up the required compute shaders and initializes the material used for the backdrop filter.
Parameters:
- renderer The view renderer instance managing this filter.
function Resize
Section titled “function Resize”void Resize( float width, float height)Updates the internal data structures and buffer sizes of the filter to match the specified view dimensions. This must be called whenever the target view is resized.
Parameters:
- width The new width of the view.
- height The new height of the view.
Reimplements: cohtml.IGlobalBackdropFilter.Resize
function ApplyGlobalBackdropFilter
Section titled “function ApplyGlobalBackdropFilter”void ApplyGlobalBackdropFilter()Executes the global backdrop filter effect for the current frame. Implementations of this method are responsible for capturing the background, applying the desired visual effect, and outputting the result to the appropriate render target or UI element.
Reimplements: cohtml.IGlobalBackdropFilter.ApplyGlobalBackdropFilter
function Dispose
Section titled “function Dispose”void Dispose()Public Property Documentation
Section titled “Public Property Documentation”property BlurRadius
Section titled “property BlurRadius”int BlurRadius;Gets or sets the blur radius used for the backdrop filter. Controls how many neighboring pixels are sampled during the blur pass. Larger values result in a stronger blur effect but are more expensive to compute.
© 2026 Coherent Labs. All rights reserved.