Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.11/Documentation~/Diffusion-Profile-Node.md
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05: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.