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:
sayudhalw
2026-08-27 10:53:36 +07:00
parent 01d3267942
commit 6c3768e477
6 changed files with 214 additions and 246 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB