Toggle Sidebar B
Light & dark mode D

Bulge

Magnify or pinch content around a center point

Magnify or pinch content around a center point

Props

PropTypeDefaultDescription
centerposition{"x":0.5,"y":0.5}The center point of the bulge effect
strengthrange1The intensity of the bulge effect (positive = bulge out, negative = pinch in)
radiusrange1The radius of the bulge effect area
falloffrange0.5Controls the smoothness of the transition (0 = hard edge, 1 = very smooth)
edges"stretch" | "transparent" | "mirror" | "wrap"stretchHow to handle edges when distortion pushes content out of bounds

Usage

vue
<Shader>
  <Bulge
    :radius="1"
  >
    <Circle />
  </Bulge>
</Shader>