Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved property descriptions #4451

Merged
merged 2 commits into from
May 11, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Improved property descriptions
Improved descriptions to address Remi's slack question: "How is calculated the distance at which diffusion profile stops having an effect in HDRP ? And what does it depends on ?"
  • Loading branch information
Vic-Cooper committed May 5, 2021
commit 9b30e011ba533e3b3395cef87286b36dd7bb677a
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Diffusion Profile

The High Definition Render Pipeline (HDRP) stores most [subsurface scattering](Subsurface-Scattering.md) settings in a __Diffusion Profile__ Asset. You can assign a __Diffusion Profile__ Asset directly to Materials that use Subsurface Scattering.
The High Definition Render Pipeline (HDRP) stores most [Subsurface Scattering](Subsurface-Scattering.md) settings in a __Diffusion Profile__ Asset. You can assign a __Diffusion Profile__ Asset directly to Materials that use Subsurface Scattering.

To create a Diffusion Profile, navigate to __Assets > Create > Rendering > HDRP Diffusion Profile__.

Expand All @@ -12,9 +12,9 @@ To create a Diffusion Profile, navigate to __Assets > Create > Rendering > HDRP
| Property| Description |
|:---|:---|
| **Name** | The name of the Diffusion Profile. |
| **Scattering Distance** | Use the color picker to select the shape and blur radius of the Diffusion Profile. Defines how far light travels below the surface. This affects the color bleeding and blurring behavior of Subsurface Scattering, as well as the color tint of Transmission. |
| **Max Radius** | An informative helper value that displays the effective maximum radius (in millimeters) of the effect you define in Scattering Distance. You can not change this value directly. |
| **Index of Refraction** | Use the slider to set the refractive behavior of the Material. Larger values increase the intensity of specular reflection. For example, the index of refraction of skin is about 1.4. For more example values for the index of refraction of different materials, see Pixel and Poly’s [list of indexes of refraction values](https://pixelandpoly.com/ior.html). |
| **Scattering Distance** | Use the color picker (circle icon) to define how far each light channel in the Diffusion Profile travels below the surface:<br/><br/>**R**: Defines how far the red light channel travels below the surface.<br/>**G**: Controls how far the green light channel travels below the surface.<br/>**B**: Controls how far the blue light channel travels below the surface.<br/><br/>The overall color affects the Transmission tint. |
| **Max Radius** | The maximum radius of the effect you define in **Scattering Distance**. The size of this value depends on the world scale. For example, when the world scale is 1, this value is in meters. When the world scale is 0.01, this value is in millimeters.<br/><br/>When the size of this radius is smaller than a pixel on the screen, HDRP does not apply Subsurface Scattering. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, when the world scale is 1, this value is in meters. When the world scale is 0.01, this value is in millimeters.

Shouldn't this be 1 => meters, 0.001 => millimeters ? (10^-3 instead of 10^-2)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot, thanks!

| **Index of Refraction** | This value is controlled by the highest of the **Scattering Distance** RGB values.Use the slider to set the refractive behavior of the Material. Larger values increase the intensity of specular reflection. For example, the index of refraction of skin is about 1.4. For more example values for the index of refraction of different materials, see Pixel and Poly’s [list of indexes of refraction values](https://pixelandpoly.com/ior.html). |
| **World Scale** | Controls the scale of Unity’s world units for this Diffusion Profile. By default, HDRP assumes that 1 Unity unit is 1 meter. This property only affects the subsurface scattering pass. |


Expand Down