v0.2.0 Support for adding glass to existing instances
Added
function GlassmorphicUI.applyGlassToImageLabel(ImageLabel: ImageLabel): ()
Takes an existing ImageLabel and applies the glassmorphic effect to it.
Useful for integrating GlassmorphicUI with existing UI systems.
function GlassmorphicUI.addGlassBackground(GuiObject: GuiObject): ImageLabel
Takes an existing GuiObject (such as a Frame) and parents a glassy ImageLabel inside it.
The ImageLabel will have a very low ZIndex as to appear as the background of the GuiObject.
The GuiObject will be forced to have a BackgroundTransparency of 1, otherwise the effect would just show your GuiObject's background behind the glass.
Useful for integrating GlassmorphicUI with existing UI systems.
Fixed
- Better adherence to frame budget by estimating the cost of the blur application when determining when to halt pixel processing
- Returns a frozen table of public APIs to prevent tampering with internal data