An interactive Three.js WebGL sketch featuring animated vertical lines with custom shaders, procedural sky effects, and scroll-based interactions. https://jonathan-j8.github.io/sketch-sunlines/
-
Install dependencies
npm install
This will automatically download the LYGIA shader library via the postinstall script.
-
Start development server
npm run dev
Navigate to
http://localhost:5173(or the port shown in terminal)
npm run build
npm run previewThe built files will be in the dist/ directory.
src/
├── main.ts # Main application entry point
├── components/
│ ├── createLines/ # Line geometry and materials
│ ├── createSky/ # Procedural sky system
│ ├── createBloomFx.ts # Post-processing bloom effect
│ └── createCubeTexture.ts # Environment mapping
├── useThreeWrapper.ts # Three.js setup and utilities
├── usePointerUniforms.ts # Mouse interaction system
└── lygia/ # GLSL utility library (auto-installed)
Created as part of creative coding exploration with WebGL and procedural graphics.