Get started with effects
Last updated
Last updated
All Uranus Material Effects come in the form of standalone scripts which you can add to your scene.
These effects expose a script attribute which you can use to reference one or more materials, which will then be upgraded with the selected effect.
These effects should be added early on your scene hierarchy before any model is enabled. That is required since they override global engine shaders for all materials.
A good place for these effects are at your Root scene entity or just after that.
The effects that work globally are:
uranus-effects-skybox.js
uranus-effects-environment-fog.js
uranus-effects-material-contrast.js
uranus-effects-shadows-timer.js
Global material effects are applied once in your project's lifetime and affect both the current scene and any other scene loaded. That means you can't disable these effects at the moment just by disabling or destroying the script instance.
A full application reload is required for that.
For some of the more complex effects like the Uranus Skybox effect and the Uranus Water effect, you can find templates in the Uranus SDK commons folder to easily get started with.
Drag and drop the template asset at your scene, make sure all the required effect layers are added to your project and to all of your active cameras, and the effect should get activated.