This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
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
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Normal From Height Value Sample

This material graph sample demonstrates how to convert height values to normal vectors.

The Normal From Height Value node is accountable for conversion from a height value to normals.

In this sample, a noise texture is used as a mask adjustable via the Coverage and Contrast parameters. The black-and-white mask is used as a blending coefficient for the Lerp node that performs linear interpolation between two normal maps and as the source height for the Normal From Height Value node converting the mask to a normal map.

Finally, the result of two blended normal maps is added as the Detail Normal to the edge normals via the Reorient Normal Blend node and the resulting tangent-space normal vector is passed to the material.

The Albedo color is obtained from the corresponding parameter.

Normal From Height Value sample
Last update: 2022-03-16
Build: ()