shown in other instead.
A scriptable material is a base material with expressions (fragments of code written in UnigineScript) executed at certain stages of rendering sequence offering you an exceptional flexibility. For example, you can use them to create your own custom post effects such as DoF or Bloom.
Scriptable materials represent an ideal instrument for fast prototyping of any custom effects, as they allow you to:
- write any logic in UnigineScript,
- apply them globally or per-camera,
- have all necessary parameters added to UI automatically.
A single or multiple scriptable materials can be applied globally (via the Scriptable Materials section of the Settings window) or attached to a certain camera (via the Settings window). Expressions assigned to a scriptable material are executed only if the material is enabled. The order of execution is defined by the material's number in the list of appllied scriptable materials (either global or camera-specific). The order can be changed if necessary.
Scriptable material lists are pretty much like the lists of components assigned to nodes, enabling you to adjust all available parameters and control which materials to apply.
As base materials, scriptable ones are created and edited manually.