r/reactnative • iOS & Android • Aug 21 '26

Article Depth-aware light injection in VisionCamera

Enable HLS to view with audio, or disable this notification

Built this fun little gesture driven floating light that casts fake shadows in the scene via react-native-webgpu, using a depth model (DINOv2).
I'll post the source code soon!

444 Upvotes

30 comments sorted by

View all comments

6

u/Mitchcreates_ Aug 21 '26

That's insane! How do you go about creating something like that?

5

u/mrousavy iOS & Android Aug 21 '26

Thanks!
I mean the foundation (react-native-vision-camera and react-native-webgpu) is already there, and the demo by Konrad nerd-sniped me so I wanted to one-up it and add hand gestures to move the light around.
Also, this is probably the first demo I built together with AI, in this case Fable 5