Can light shadows be expressed with Three.js?

Hello,

I discovered that translucent materials can be expressed using the transmission property. (However, it was impossible to make complex shapes pass through themselves.)

Is it possible to express light scattering like this?

Thank you for your help!

image

Yes, but also no.

Yes in theory… you can do almost anything with complex shader, raytracing, raymarching… but doing it in realtime, or on a large segment of desktop GPUs is a whole other question.

No, in that… It’s hard.

Thank you. It’s quite challenging to find the limits of what can be expressed without using GLSL. :joy:

1 Like

The closest you’ll probably get to this is using three-gpu-pathtracer, it won’t be real time though.