Tangent-Space Normal Map 示例
This material graph sample demonstrates how to use tangent-space normal maps.此材质图表示例演示了如何使用切线空间法线贴图。
The Sample Texture node samples tangent-space normals taken from the normal map Texture 2D parameter node (enabling you to select a texture asset via the Parameters panel in UnigineEditor) in accordance with the default UV.Sample Texture 节点根据默认 UV 对取自法线贴图 Texture 2D 参数节点的切线空间法线进行采样(使您能够通过 UnigineEditor 中的 Parameters 面板选择纹理资源)。
The Normal Space for the material is set to Tangent, therefore it is simply enough to pass the output to the material's Normal input.这正常空间因为材质设置为 Tangent,因此只需将输出传递给材质的 Normal 输入即可。
The Albedo color is defined by the value from the Color node. The Roughness value is provided directly via a Float node.反照率颜色由 Color 节点的值定义。粗糙度值直接通过 Float 节点提供。