Toggle Sidebar B
Light & dark mode D

FlutedGlass

Full-screen fluted glass effect - refracts content through repeating cylindrical bars

Full-screen fluted glass effect - refracts content through repeating cylindrical bars

Props

PropTypeDefaultDescription
shape"bars" | "rounded" | "waves"barsCross-section shape of each flute
anglerange0Direction of the flutes in degrees (0 = vertical bars)
frequencyrange10Number of flutes across the longest viewport axis
softnessrange0.5How smoothly distortion fades from each flute centre to its edge (0 = flat middle / sharp seams, 1 = gentle curve)
waveAmplituderange0.06How far each flute sways horizontally as it travels (Waves shape only)
waveFrequencyrange1.5How many sways fit along each flute (Waves shape only)
speedrange0Animation speed - drifts the flute pattern over time and flows wave perturbations
refractionrange1.5How aggressively each flute bends content beneath it
aberrationrange0.2Chromatic aberration - splits RGB along the refraction direction at flute seams
lightAnglerange30Direction the light source is coming from (0 = head-on, 90 = grazing)
highlightrange0.2Strength of the specular reflection on each flute
highlightSoftnessrange0.3Spread of the specular peak (0 = pin-tight, 1 = broad sheen)
highlightColorcolor#ffffffColor of the specular highlight
edges"stretch" | "transparent" | "mirror" | "wrap"mirrorHow to handle edges when distortion samples beyond the canvas

Usage

vue
<Shader>
  <FlutedGlass>
    <Circle />
  </FlutedGlass>
</Shader>