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

Alpha Test Sample

This material graph sample demonstrates how to use alpha testing when creating materials.

The Sample Texture node samples data from an RGBA texture (Texture 2D node) in accordance with the default UV and passes RGB color components to the Albedo port of the master material node of Mesh Alpha Test PBR type (first three components are taken) while passing Alpha data to the Opacity port via the w port adapter.

Normal data for the material is taken from the tangent-space Normal map data (Texture 2D node) sampled by the Sample Texture node.

Translucency of the resulting material is controlled via the Slider node (enabling you to adjust a float value via the Parameters panel in UnigineEditor) connected to the Translucent port of the master material node.

Finally, the data output is passed to the Final node.

The result
Last update: 2022-03-16
Build: ()