This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
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
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: ()