oc_liquid_glass library

Classes

OCLiquidGlass
Widget that wraps any child to make it appear as a liquid glass droplet.
OCLiquidGlassGroup
Container widget that manages multiple liquid glass shapes and applies the shader effect. This widget loads the fragment shader and creates a render layer that collects all LiquidGlass children and applies the unified glass effect to them.
OCLiquidGlassSettings
Configuration class that holds all visual parameters for the liquid glass shader effect. These parameters control various aspects like refraction, blur, lighting, and color.
RenderLiquidGlass
The render object for individual glass shapes.
ShapeData
Simplified shape data structure used to pass geometry information to the shader. Each LiquidGlass widget gets converted into this format for GPU processing. The border radius is automatically clamped to max(width/2, height/2) to ensure valid geometry.