Skip to content

Repository files navigation

Interactive rug shader

View Live: GitHub Pages

demo.mp4

A simple interactive rug shader that simulates a spherical object going under a rug and the subsequent lifting of the rug.

Inspired by the Rug Shader by @_Dervishh.

How it works

The lift is based on a circle SDF centered on the position of the refrence object. Physics are done via react-three/rapier.

3D Model credits

Contributors

Languages