This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Basics
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
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 Reference
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
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Refraction Raymarched Node


Description

Provides simulation of refractive material features using screen-space ray marching. Can be used for materials like glass, water, ice, or other transparent and translucent surfaces. You can find usage examples for this node in the Glass material graph sample (see Blended Refractive Material for Thick Glass and Blended Refractive Material for Thin Glass)

Ports

Name Description
Step SizeDefines the texture sampling step; controls the precision of ray marching (smaller values result in higher accuracy).
Translucence RoughnessAdjusts light scattering inside the material (0 = clear, higher = blurrier).
Last Step SizeSampling step used in the final phase of ray marching, helping to improve precision near intersections with scene geometry.
IORDefines how much light bends when passing through the material (Index of Refraction).
Normal Tangent SpaceTangent-space surface normals used to distort the refraction effect across the material.
Position View SpacePosition of the fragment in View space (relative to the camera). Used as the ray origin for screen-space refraction.
EmissionOutputs the refracted scene color. This result should be connected to the Emission input of the Material node to display the distorted background as seen through the refractive surface.
Ray DistanceDistance traveled by the refracted ray from its origin to the point of intersection.
Intersection Screen UVScreen-space UV coordinates at the intersection point between the refracted ray and the background.
Refraction Screen UV OffsetOffset applied to screen-space UVs due to refraction. Can be used to create distortion effects.

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

Last update: 2025-04-04
Build: ()