This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
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
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Matrix
Textures
Art Samples
Учебные материалы

Clamp Node


Description

Outputs the input value clamped between Min and Max.

  • Min is returned if input is less than Min
  • value is returned if input is between Min and Max
  • Max is returned if input is greater than Max

This node is used when you want to cut the unnecessary ranges of values higher and lower than certain limits (Min and Max).

Usage Examples

Gradient Mask

Gradient mask controlling interpolation (along U-axis) between two given textures, with Slider1 controlling the position of the transition and Slider2 controlling transition softness. Outputs of two Sample Texture nodes are connected to the Lerp node that performs linear interpolation between texture values with an interpolation coefficient. To get this coefficient we take U coordinate from the Vertex UV 0 node and subtract it from the current Slider1 value using the Subtract node, the result is then passed to the Divide node to be divided by the value of Slider2, then the result is summed up with Slider1 value and passed to the Clamp node to be restricted to the [0;1] range. The result or linear interpolation provides Albedo values for the Material.

Last update: 16.05.2022
Build: ()