Skip to content

About

An interactive 3D butterfly animation built with React Three Fiber, featuring shader-based wing flapping and post-processing effects.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

WebGL Butterfly Demo

Deno Deploy

A 3D butterfly animation built with React Three Fiber, featuring shader-based wing flapping and post-processing effects.

3D Butterfly

Features

  • Shader-based Animation: Custom GLSL vertex and fragment shaders for realistic wing movement
  • Auto-decay System: Wings gradually slow down with automatic periodic re-animation
  • Post-processing: Bloom effects and camera shake for visual polish
  • Gradient Background: Custom shader-based radial gradient backdrop

Tech Stack

  • React 19 with TypeScript (strict mode)
  • React Three Fiber - React renderer for Three.js
  • @react-three/drei - Useful helpers and abstractions
  • @react-three/postprocessing - Post-processing effects
  • Three.js - 3D graphics library
  • GLSL Shaders - Custom vertex and fragment shaders
  • Vite 6.2 - Build tool and dev server

Getting Started

Prerequisites

Installation

npm install

Development

just dev

Build

just build

Preview Production Build

just preview

Linting

just lint

Deployment

This project is configured to deploy to Deno Deploy:

# Deploy to staging
just deploy

# Deploy to production
just deploy-prod

About

An interactive 3D butterfly animation built with React Three Fiber, featuring shader-based wing flapping and post-processing effects.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages