Portals Sample
This material graph sample demonstrates how to use portals in your materials.
Two colors (A and B) are blended by the Lerp node controlled by the coefficient provided by the Float Slider node (enabling you to adjust float values via the Parameters panel in the UnigineEditor).
Both colors and the control slider are connected to the corresponding ports of the Lerp node via portals (portal_color_a, portal_color_b, and portal_slider). Output ports of color portals are connected via the XYZ port adapter selecting RGB color components.
Opacity value (fully opaque) for the Deferred PBR Material master material node is specified directly via the port adapter.
Finally, the data output is passed to the Final Material node.
Last update:
2021-04-09
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)