Utility Nodes
In the Shader Designer, utility nodes represent common, useful shader calculations that don't fit neatly into the other categories. Some utility nodes perform simple operations such as appending vectors together or choosing results conditionally, and others perform complex operations such as computing lighting contributions according to popular lighting models.
Utility node reference
Node |
Details |
Properties |
---|---|---|
Append Vector |
Creates a vector by appending the specified inputs together. Input:
Output:
|
None |
Fresnel |
Computes the Fresnel fall-off based on the specified surface normal. The Fresnel fall-off value expresses how closely the surface normal of the current pixel coincides with the view vector. When the vectors are aligned, the result of the function is 0; the result increases as the vectors become less similar, and reaches its maximum when the vectors are orthogonal. You can use this to make an effect more or less apparent based on the relationship between the orientation of the current pixel and the camera. Input:
Output:
|
|
If |
Conditionally chooses one of three potential results per component. The condition is defined by the relationship between two other specified inputs. For each component of the result, the corresponding component of one of the three potential results is chosen, based on the relationship between the corresponding components of the first two inputs. Input:
Output:
|
None |
Lambert |
Computes the color of the current pixel according to the Lambert lighting model, by using the specified surface normal. This color is the sum of ambient color and diffuse lighting contributions under direct lighting. Ambient color approximates the total contribution of indirect lighting, but looks flat and dull without the help of additional lighting. Diffuse lighting helps add shape and depth to an object. Input:
Output:
|
None |
Mask Vector |
Masks components of the specified vector. You can use this to remove specific color channels from a color value, or to prevent specific components from having an effect on subsequent calculations. Input:
Output:
|
|
Reflection Vector |
Computes the reflection vector for the current pixel in tangent space, based on the camera position. You can use this to calculate reflections, cubemap coordinates, and specular lighting contributions Input:
Output:
|
None |
Specular |
Computes the specular lighting contribution according to the Phong lighting model, by using the specified surface normal. Specular lighting gives a shiny, reflective appearance to an object, for example, water, plastic, or metals. Input:
Output:
|
None |