I’m procedurally generating objects which are baked into a skybox and assigned as the RenderSettings.skybox at runtime. I have the ambient source in the scene lighting settings set to “Skybox” and the intensity at 1, but it seems like updating the skybox at runtime doesn’t cause the lighting to recalculate.
Is there any way via scripts or similar to make the skybox lighting recalculate based on the current skybox? I found RenderSettings.ambientProbe in the documentation, but haven’t found any information on how to use it.
I read in another thread that “calculations needed to crunch down a skybox to a spherical harmonics representation are quite intensive, so they need an async job” by a Unity Dev :
If there was a way to somehow do these calculations at runtime based on the current skybox, that would be awesome. Does anyone have any ideas how I might go about doing this, or if it’s even possible at the current stage? It seems like it would be quite useful for people who want to change skyboxes at runtime but also have the lighting update.
Thanks for any info!