This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Браузер SDK 2
Лицензирование и типы лицензий
Дополнения (Add-Ons)
Демонстрационные проекты
API Samples
Редактор 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
Учебные материалы

Normalize Node


Description

This node is used to normalize an input vector, ensuring that it has a length of exactly 1 while maintaining its original direction. Normalization is crucial in various graphics and shading operations, as it prevents unintended scaling effects and ensures correct mathematical calculations involving vectors.

The Normalize node maintains vector calculation precision and visually consistency for:

  • Proper normal map shading by keeping normal vectors unit length.
  • Accurate reflection or refraction calculations
  • Directional effects, such as Fresnel or Parallax, etc.

Functionality

The Normalize node takes a vector as input and computes its unit vector:

Normalized Vector = Input / Length ( Input )

Usage Examples

Creating A Material Always Facing The Camera

Normalization is a crucial step when working with vectors. Skipping normalization can result in incorrect material behavior due to changes in camera vector length, leading to miscalculations.

For example, if we want to create an object always facing the camera, we need to construct a local coordinate system based on the camera's position relative to the object.

Since the Cross node calculates the perpendicular vector by multiplying two input vectors, without normalization, their varying lengths will cause unpredictable material transformation, making the object change in size depending on the camera position. To avoid this, always normalize vectors before performing such calculations.

The information on this page is valid for UNIGINE 2.20 SDK.

Last update: 04.04.2025
Build: ()