FlutedGlass
Full-screen fluted glass effect — refracts content through repeating cylindrical bars
Props
Prop
Details
shape"bars" | "rounded" | "waves"Default:
barsCross-section shape of each flute
shape"bars" | "rounded" | "waves"Default: barsCross-section shape of each flute
anglenumberDefault:
0Direction of the flutes in degrees (0 = vertical bars)
anglenumberDefault: 0Direction of the flutes in degrees (0 = vertical bars)
frequencynumberDefault:
10Number of flutes across the longest viewport axis
frequencynumberDefault: 10Number of flutes across the longest viewport axis
softnessnumberDefault:
0.5How smoothly distortion fades from each flute centre to its edge (0 = flat middle / sharp seams, 1 = gentle curve)
softnessnumberDefault: 0.5How smoothly distortion fades from each flute centre to its edge (0 = flat middle / sharp seams, 1 = gentle curve)
waveAmplitudenumberDefault:
0.06How far each flute sways horizontally as it travels (Waves shape only)
waveAmplitudenumberDefault: 0.06How far each flute sways horizontally as it travels (Waves shape only)
waveFrequencynumberDefault:
1.5How many sways fit along each flute (Waves shape only)
waveFrequencynumberDefault: 1.5How many sways fit along each flute (Waves shape only)
speednumberDefault:
0Animation speed — drifts the flute pattern over time and flows wave perturbations
speednumberDefault: 0Animation speed — drifts the flute pattern over time and flows wave perturbations
refractionnumberDefault:
1.5How aggressively each flute bends content beneath it
refractionnumberDefault: 1.5How aggressively each flute bends content beneath it
aberrationnumberDefault:
0.2Chromatic aberration — splits RGB along the refraction direction at flute seams
aberrationnumberDefault: 0.2Chromatic aberration — splits RGB along the refraction direction at flute seams
lightAnglenumberDefault:
30Direction the light source is coming from (0 = head-on, 90 = grazing)
lightAnglenumberDefault: 30Direction the light source is coming from (0 = head-on, 90 = grazing)
highlightnumberDefault:
0.2Strength of the specular reflection on each flute
highlightnumberDefault: 0.2Strength of the specular reflection on each flute
highlightSoftnessnumberDefault:
0.3Spread of the specular peak (0 = pin-tight, 1 = broad sheen)
highlightSoftnessnumberDefault: 0.3Spread of the specular peak (0 = pin-tight, 1 = broad sheen)
highlightColorstringDefault:
#ffffffColor of the specular highlight
highlightColorstringDefault: #ffffffColor of the specular highlight
edges"stretch" | "transparent" | "mirror" | "wrap"Default:
mirrorHow to handle edges when distortion samples beyond the canvas
edges"stretch" | "transparent" | "mirror" | "wrap"Default: mirrorHow to handle edges when distortion samples beyond the canvas