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

Add shadow dynamic rescale mention in the shadow docs. #1469

Merged
merged 5 commits into from
Sep 2, 2020

Conversation

FrancescoC-unity
Copy link
Contributor

As in the title, just a doc update.

@github-actions
Copy link

It appears that you made a non-draft PR!
Please convert your PR to draft (button on the right side of the page)
and cancel any jobs that started on Yamato.
See the PR template for more information.
Thank you!

@@ -16,6 +16,9 @@ The number of shadow maps HDRP renders per Light depends on the **Type** of the
- A Point Light renders six shadow maps (the number of faces in a cubemap).
- A Directional Light renders one shadow map per cascade. Set the cascade count of Directional Lights from the [HD Shadow Settings](Override-Shadows.md) of your Scene’s [Volumes](Volumes.md). The default value is four cascades.

Note that HDRP can perform dynamic rescale of the shadow maps in a way that the smaller the area of the screen that the light covers the more the resolution is scaled down from the value set on the Light component. This can be useful to maximize the usage of the space in the shadow atlases, but also to reduce the impact of lights that occupy a small portion of the screen on performance. This option can be activated, per atlas, in the shadow section of the your Unity Project’s [HDRP Asset](HDRP-Asset.md).
Copy link
Contributor

@JordanL8 JordanL8 Jul 31, 2020

Choose a reason for hiding this comment

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

HDRP can perform a dynamic rescale of shadow maps to maximize space usage in shadow atlases, but also to reduce the performance impact of lights that occupy a small portion of the screen. To do this, HDRP scales down a light's shadow map resolution depending on the size of the screen area the light covers. The smaller the area on the screen, the more HDRP scales the resolution down from the value set on the Light component. To enable this feature, go the Shadow section of your Unity Project’s HDRP Asset and enable the Dynamic Rescale property for the shadow atlas you want HDRP to dynamically rescale the shadow maps of.

@@ -16,6 +16,9 @@ The number of shadow maps HDRP renders per Light depends on the **Type** of the
- A Point Light renders six shadow maps (the number of faces in a cubemap).
- A Directional Light renders one shadow map per cascade. Set the cascade count of Directional Lights from the [HD Shadow Settings](Override-Shadows.md) of your Scene’s [Volumes](Volumes.md). The default value is four cascades.

Note that HDRP can perform dynamic rescale of the shadow maps in a way that the smaller the area of the screen that the light covers the more the resolution is scaled down from the value set on the Light component. This can be useful to maximize the usage of the space in the shadow atlases, but also to reduce the impact of lights that occupy a small portion of the screen on performance. This option can be activated, per atlas, in the shadow section of the your Unity Project’s [HDRP Asset](HDRP-Asset.md).
Please note that this option is not available for cached shadow maps.
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that HDRP does not support dynamic rescale for cached shadow maps.

Copy link
Contributor

@JordanL8 JordanL8 left a comment

Choose a reason for hiding this comment

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

Left a couple of comments.

@sebastienlagarde sebastienlagarde merged commit 3ffddd3 into HDRP/staging Sep 2, 2020
@sebastienlagarde sebastienlagarde deleted the HDRP/add-dynamic-rescale-mention branch September 2, 2020 15:56
@sebastienlagarde sebastienlagarde mentioned this pull request Sep 3, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants