Shape Blur

Interactive shape blur effects with Three.js shaders and mouse tracking

Usage

import ShapeBlur from './ShapeBlur';

<div style={{position: 'relative', height: '500px', overflow: 'hidden'}}>
  <ShapeBlur
    variation={0}
    pixelRatioProp={window.devicePixelRatio || 1}
    shapeSize={0.5}
    roundness={0.5}
    borderSize={0.05}
    circleSize={0.5}
    circleEdge={1}
  />
</div>

Props

PropTypeDefaultDescription
variationnumber0Shape variation (0-3)
pixelRatioPropnumber2Pixel ratio for rendering
shapeSizenumber1.2Size of the main shape
roundnessnumber0.4Roundness of corners
borderSizenumber0.05Size of the border
circleSizenumber0.3Size of the cursor circle
circleEdgenumber0.5Edge softness of cursor