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
Math
Matrix
Art Samples
Учебные материалы

Sample Texture Node


Description

Takes an input texture (2D, 3D, 2D array, 2D int, or cubemap) and returns a value from this texture depending on the current parameter values selected for this node, other inputs are used to provide additional information required to obtain output.

Notice
This node has parameters (see below) that define its behavior, to view and change them double-click somewhere inside the node.

This node automatically detects the type of texture connected to its input (2D, 3D, 2D array, 2D int, or cubemap) and what it is going to be used for. For example, if you connect a 2D Texture the node will automatically activate a UV input, for a 2D Texture Array it will expect UV and array element Index, for a 3D Texture - UVW coordinates, or a Direction vector for cubemaps (Texture Cube), for Texture 2D Int nodes an integer output is activated. Moreover, this node contains settings for interpolation of values when sampling a texture (filtering).

Parameters

Type

Sampling and filtering type to be used. One of the following options::
  • Default - default sampling using UV coordinates.
  • Mip - Texture sampling using a mipmap-level.
  • Mip offset - Texture sampling using a mipmap-level offset.
  • Grad - Gradient texture sampling allows you to specify the two gradients for how the texture coordinates change locally: DDX and DDY values are vectors that represent the change of each texture coordinate per pixel of the window's X and Y coordinates.
  • Fetch - Direct texel fetch, enables direct access to texel values with non-normalized coordinates.
  • Point - Point filtering
  • Catmull - Catmull-Rom filtering
  • Cubic - Cubic filtering
  • Manual linear - Manual linear filtering

Normal Space

Normal space to be used. One of the following options::
  • Tangent Space for UV0 - define normals using the tangent space based on the first UV-channel (UV0).
  • Tangent Space for UV1 - define normals using the tangent space based on the second UV-channel (UV1).
  • Tangent Space Auto-Calculated - define normals using the tangent space calculated automatically.
  • Object Space - define normals using object space.

Last update: 16.05.2022
Build: ()