Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

711 B

Normal Reconstruct Z Node

Description

Derives the correct Z value for generated normal maps using a given X and Y value from input In.

Ports

Name Direction Type Description
In Input Vector 2 Normal X and Y value
Out Output Vector 3 Output value

Generated Code Example

The following example code represents one possible outcome of this node.

void Unity_NormalReconstructZ_float(float2 In, out float3 Out)
{
    float reconstructZ = sqrt(1.0 - saturate(dot(In.xy, In.xy)));
    float3 normalVector = float3(In.x, In.y, reconstructZ);
    Out = normalize(normalVector);
}