This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров узла
Setting Up Materials
Настройка свойств
Освещение
Landscape Tool
Sandworm
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World Objects
Звуковые объекты
Объекты поиска пути
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
UnigineScript
C++
C#
Унифицированный язык шейдеров UUSL
File Formats
Rebuilding the Engine Tools
GUI
Двойная точность координат
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Custom Subgraphs Sample

This sample demonstrates how to create Subgraphs and use them in your Material Graphs. There are two Subgraphs included:

1) A simple Subgraph demonstrating all available inputs (all_types_of_data_subgraph).

2) A simple Subgraph implementing contrast correction for the albedo color (my_contrast).

The image below demonstrates how the Subgraphs described above are used in a complex Material Graph.

  • Using the xyz port adapter the my_contrast node (Subgraph) takes the first thee color components sampled by the Sample 2D node from the data of the Texture node and performs color adjustment with the contrast value provided by the Float Slider node (enabling you to adjust a float value via the Parameters panel in the UnigineEditor). Finally, the data output from the master material node is passed to the Final Material node.
  • Nodes providing all available input types (float, int, texture) are connected to the corresponding input ports of the all_types_of_data_subgraph Subgraph node.

Last update: 29.04.2021
Build: ()