Realtime GI rebuild within code

Hi Guys,

I was looking for the solution a long time and could find nothing. Any advise or helpful links would be nice.

I have checked only precomputed GI, no Baked GI

I have a square room where walls marked static and GI works very nice but ingame player is able to buy new wallpapers and so the realtime GI is needed to build again. is it possible to rebuild it within code even if it takes long, since it is not often happening.

this way we set the new wallpaper.
wall.GetComponent().material.mainTexture = texture

Yes you can change the albedo in the player, have a look here Unity Blog

Hi

Thanks for the link,

We need to allow player decorate the room and change wallpapers by buying them from the shop. It means player should be able to place new items which even not were in the scene when it was precomputed.

Then I suggest you light the new objects with light probes.

Thanks for the answer. So there is no way to build GI from code?

Not at runtime, no.

Light probes with a bit of SSAO will look pretty convincing though.