Collection of scripts that allow you to seamlessly transition between 2 PostProcessingProfiles based on time or distance.
May 23, 2017 Update: We are using the stable branch (v1) of Unity-Technologies/PostProcessing February 2, 2018 Update: The v2 branch of Unity-Technologies/PostProcessing now supports most of the operations done here, out of the box: https://github.com/Unity-Technologies/PostProcessing
This means that if you are using 2017.1+ you probably want to go there and consider this repo DEPRECATED
- Seamless, fluid, smooth, awesome transitions
- Switch profiles over time
- Switch profiles over distannce
- Trigger zones to switch profiles
- All numeric (float / int) values in PP effects
- Lerping booleans (we have the method, but it needs fine-tuning to be seamless)
- Lerping textures (no method yet)
If you don't care about the rest of the staff from PostProcessing, just grab the "Transitions" folder. I haven't changed anything else (nor do I plan to)
I have not tested Unity versions < 5.6. I have not extensively tested the smoothness of every single transition. Lmk if there's anything wrong.
- Create 2 PostProcessingProfiles, we'll call them A and B.
Hint: Try to use the same effects in both, but change the numeric values significantly to notice the effect!
- Add a PostProcessingBehaviour to your camera
- Assign profile A to it
- Create an empty object and add a collider on it
- Use the collider to cover an area where you would like the to switch to B profile
- Set the collider as trigger
- Add a TimePostProcessingTransition to the object
- Assign profile B as Future Profile
- Assign how long you want the transition to take under Config/Time for Transition
- Click Play, move inside the trigger zone and watch the transition effect!