Toggle Sidebar B
Light & dark mode D

GridDistortion

Interactive grid distortion controlled by mouse position

Interactive grid distortion controlled by mouse position

Props

PropTypeDefaultDescription
intensityrange1Strength of the distortion effect
decayrange3Rate of distortion decay (higher = faster)
radiusrange1Radius of the distortion effect
gridSizerange20Resolution of the distortion grid (higher = more detailed)
edges"stretch" | "transparent" | "mirror" | "wrap"stretchHow to handle edges when distortion pushes content out of bounds

Usage

vue
<Shader>
  <GridDistortion
    :intensity="1"
    :radius="1"
  >
    <Circle />
  </GridDistortion>
</Shader>