6c3768e477d17df31250385a2b7a02a3f3fb1b09
- Removed pnpm-workspace.yaml configuration for esbuild. - Updated index.html title from "Lights" to "Shadows". - Enhanced script.js with new shadow textures and improved lighting setup: - Added ambient, directional, spot, and point lights with shadow capabilities. - Removed unused light configurations and helpers for clarity. - Introduced shadow casting and receiving for objects. - Updated sphere movement and shadow opacity based on position. - Added bakedShadow.jpg and simpleShadow.jpg texture files for shadow effects.
Three.js Journey
Setup
Download Node.js. Run this followed commands:
# Install dependencies (only the first time)
npm install
# Run the local server at localhost:8080
npm run dev
# Build for production in the dist/ directory
npm run build
Languages
JavaScript
92.6%
HTML
5.1%
CSS
2.3%