Refactor lighting and shadows in the scene
- 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.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user