demo-landscape.mov
This project is a visual, node-based graph editor for creating and experimenting with GPU shaders, built with React Native, Expo, and leveraging WebGPU for rendering.
- Visual Node Editor: Create, connect, and manipulate nodes in a 2D canvas.
- Drag & Drop Interface: Use gestures to pan the canvas and move nodes.
- Shader Graph Compilation: The node graph is compiled into a single shader.
- Real-time Preview: View the output of your shader graph in real-time.
- React Native & Expo: For cross-platform development on iOS, Android, and Web.
- Jotai: For state management of the graph, nodes, and connections.
- React Native Gesture Handler & Reanimated: For a fluid and responsive user interface. React Native SVG: For rendering everything I was too lazy to write a shader for.
- TypeGPU For easy, type-safe and maintainable shader code generation.
-
Install dependencies:
yarn install
-
Prebuild and start the Expo project:
npx expo prebuild npx expo start