Back to Daily Feed 
Relighting 2D Images with Depth Maps and Three.js
Worth Reading
Originally published on Codrops
View Original Article
Share this article:

Summary & Key Takeaways
• The article explores combining depth maps with Three.js and WebGPU for dynamic image relighting. • It details how to add realistic lighting, surface details, and self-shadowing to 2D images. • TSL (Three.js Shading Language) is utilized for advanced shader effects. • This technique allows for interactive and immersive visual experiences on the web.
Our Commentary
This is the kind of creative web graphics work that genuinely excites me. Taking a flat image and giving it depth and dynamic lighting with WebGPU? That's just cool. We're seeing the web platform push boundaries in visual fidelity, and articles like this show us how to get there. I'm already thinking about what kind of interactive art pieces this could enable.
View Original Article
Share this article: