Is it possible to re-produce the calculation of the global illumination in C# script?

Hi everyone, I’ve got a problem about global illumination when working on my project. I need to get the global illumination result of an object which is not on the screen.
There are two possible solutions that I am currently working on:

(1) Re-produce the calculation of the global illumination in C# script. But I don’t know the total global illumination rendering formula.

(2) Use deferred shading with the object’s data. But there are few parameters that I can’t obtain.
Render Target 0 : Occlusion
Render Target 3 : Emission + lighting + lightmaps + reflection probes buffer.

I would like to know if there is any other way to get the current color of that object during run-time without adding a new camera to look at it? Or if anyone has some ideas about the solutions above, is welcome to discuss.

If the object is being lit by light probes, then you can get the light probe data via script.

You’ll have to look up how to decode the SH data yourself.

If it’s a static object using light maps then a camera is the only option.