Skip to content

v0.2.0 Support for adding glass to existing instances

Compare
Choose a tag to compare
@boatbomber boatbomber released this 05 Mar 03:45
· 7 commits to main since this release

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