Is it possible to get light intensity of each ray at run time?

And while technically possible, it is quite expensive to pass data backwards from the GPU to the CPU, especially at large scales. This is why the method most take is to capture a texture (render target) that coarsely represents the scene, which can then be sampled on the CPU.

1 Like