UNPKG

glodrei

Version:

useful add-ons for react-three-fiber

16 lines (12 loc) 518 B
--- title: MeshWobbleMaterial sourcecode: src/core/MeshWobbleMaterial.tsx --- [![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/shaders-meshwobblematerial--mesh-wobble-material-st) This material makes your geometry wobble and wave around. It was taken from the [threejs-examples](https://threejs.org/examples/#webgl_materials_modified) and adapted into a self-contained material. ```jsx <mesh> <boxGeometry /> <MeshWobbleMaterial factor={1} speed={10} /> </mesh> ```