Singularity/Library/PackageCache/com.unity.shadergraph@12.1.11/Documentation~/Diffusion-Profile-Node.md
2024-05-06 11:45:45 -07:00

1.8 KiB

Diffusion Profile Node

The Diffusion Profile Node allows you to sample a Diffusion Profile Asset in your Shader Graph. For information on what a Diffusion Profile is and the properties that it contains, see the Diffusion Profile documentation.

Render pipeline compatibility

Node Universal Render Pipeline (URP) High Definition Render Pipeline (HDRP)
Diffusion Profile Node No Yes

Ports

name Direction type description
Out Output float Outputs a unique float that the Shader uses to identify the Diffusion Profile.

Notes

The output of this Node is a float value that represents a Diffusion Profile. The Shader can use this value to find settings for the Diffusion Profile Asset that this value represents.

If you modify the output value, the Shader can no longer use it to find the settings for the Diffusion Profile Asset. You can use this behavior to enable and disable Diffusion Profiles in your Shader Graph. To disable a Diffusion Profile, multiply the output by 0. To enable a Diffusion Profile, multiply the output by 1. This allows you to use multiple Diffusion Profiles in different parts of your Shader Graph. Be aware that the High Definition Render Pipeline (HDRP) does not support blending between Diffusion Profiles. This is because HDRP can only evaluate a single Diffusion Profile per pixel.