A tool to blend skyboxes in Unity with realtime environment lighting and reflections updates.
- Add the SkyboxBlender.cs script to an object in your scene.
- Assign the two input skybox materials to blend to the SkyboxBlender.
- Create a new material with the SkyboxBlender/BlendedSkybox shader.
- Assign the newly created material to the SkyboxBlender and to your scene skybox.
- Blend !
- To update the reflection probe resolution after changing it, use the Update Probe button.
- The script executes in edit mode to visualize the blend result in the editor, you can disable it by removing the [ExecuteInEditMode] tag in the SkyboxBlender script.
- The input skyboxes materials are expected to use the Unity built-in Skybox/6-sided shader.
- The SkyboxBlender script set the Environment Reflections Source to Custom. If you remove the script and your scene is all black, set the Environment Reflections Source back to Skybox in the Lighting tab, as described here.
- The reflection update does not always work properly when not updating every frames.