File size: 506 Bytes
f581cc4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { GLASS_EFFECTS } from "../constants";

export default function GlassFilters() {
  return (
    <svg style={{ display: "none" }} aria-hidden="true">
      <filter id="glass-distortion">
        <feTurbulence
          type="turbulence"
          baseFrequency={GLASS_EFFECTS.BASE_FREQUENCY}
          numOctaves={GLASS_EFFECTS.NUM_OCTAVES}
          result="noise"
        />
        <feDisplacementMap in="SourceGraphic" in2="noise" scale={GLASS_EFFECTS.SCALE} />
      </filter>
    </svg>
  );
}