Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Skybox-Blender

A tool to blend skyboxes in Unity with realtime environment lighting and reflections updates.

How to use

  1. Add the SkyboxBlender.cs script to an object in your scene.
  2. Assign the two input skybox materials to blend to the SkyboxBlender.
  3. Create a new material with the SkyboxBlender/BlendedSkybox shader.
  4. Assign the newly created material to the SkyboxBlender and to your scene skybox.
  5. Blend !

Useful information

  • 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.

Known Issues

  • The reflection update does not always work properly when not updating every frames.

About

A tool to blend skyboxes in Unity

Resources

Stars

40 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages