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

Fresnel Effect 示例

This material graph sample demonstrates how to implement the Fresnel effect with respect to a normal map used when creating materials.此材质图表示例演示了如何针对创建材质时使用的法线贴图实现菲涅耳效果。

The data from the Albedo texture is sampled (in accordance with the default UV) by the Sample Texture node connected to the Albedo port of the master material node.来自 Albedo 纹理的数据由连接到主材质节点的 Albedo 端口的 Sample Texture 节点采样(根据 default UV)。

The tangent-space normal data taken from the Normal texture is passed to the Fresnel node accountable for the effect intensity, the effect power is controlled by the Power Slider parameter node. Thus the Fresnel effect is based on data from the normal map and not the vertex normals.Normal 纹理获取的切线空间法线数据被传递到负责效果强度的 Fresnel 节点,效果功率由Power控制滑块参数节点。因此,菲涅耳效应是基于来自法线贴图的数据,而不是顶点法线。

The output multiplied by the color from the Color parameter node (enabling you to adjust a color value via the Parameters panel in UnigineEditor) is plugged into the Emission port of the material. Thus the emission color is applied only in the areas where the fresnel effect takes place.输出倍增通过来自 Color 参数节点的颜色(使您能够通过 UnigineEditor 中的 Parameters 面板调整颜色值)插入材质的 Emission 端口。因此,发射颜色仅应用于发生菲涅耳效应的区域。

The result结果
最新更新: 2024-01-18
Build: ()