This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
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 Objects
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
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
Art Samples
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Alpha Test Sample

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

The Sample2D node samples data from an RGBA texture (Texture node) in accordance with the default UV and passes RGB color components to the Albedo port of the Deferred PBR Material master material node via the xyz port adapter while passing Alpha data to the Opacity port via the w port adapter.

Normal data for the Deferred PBR Material master material node is taken via the XYZ port adapter from the tangent-space Normal map data (Texture node) sampled by the Sample 2D node.

Transluсency of the resulting material is controlled via the Float Slider node (enabling you to adjust a float value via the Parameters panel in the UnigineEditor) connected to the translucent port of the Deferred PBR Material master material node.

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

Last update: 2021-04-29
Build: ()