-
Notifications
You must be signed in to change notification settings - Fork 855
Urp/fix to add tooltip of ss-shadows #5034
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a681128
Add a editor class of screen space shadows
Seongdae 0faa9ca
Merge branch 'master' into urp/fixToHideSettingsOfSSShadows
Seongdae c9f614f
Missing meta file
Seongdae 473c72d
Apply shadow-fading to a output of screen space shadows
Seongdae e38368f
Update CHANGELOG.md
Seongdae b5b3e96
Change shadow-fading on only realtime shadow in screen space shadows …
Seongdae 4dfe365
Fix to fade out main light shadows not using screen space shadows
Seongdae 30b00a9
Add tooltip for screen space shadows
Seongdae 9625ad4
Update CHANGELOG.md
Seongdae 20a1490
Add images for a documentation of screen space shadows
Seongdae 52f13c4
Add a documentation of screen space shadows
Seongdae 31d8ec5
Update a docs of screen space shadows
Seongdae 4a2716b
Update renderer-feature-screen-space-shadows.md
Seongdae 9cca495
Update renderer-feature-screen-space-shadows.md
Seongdae 03679cf
Update renderer-feature-screen-space-shadows.md
Seongdae c5c9a4e
Update renderer-feature-screen-space-shadows.md
Seongdae 9f03efb
Update renderer-feature-screen-space-shadows.md
Seongdae 019f683
Update renderer-feature-screen-space-shadows.md
Seongdae 1598191
Update renderer-feature-screen-space-shadows.md
Seongdae 97f90e6
Merge branch 'master' into urp/fixToHideSettingsOfSSShadows
Seongdae f2dae6d
Update renderer-feature-screen-space-shadows.md
Seongdae c437d56
Reviewed the documentation and removed now unused images
JordanL8 24495bb
Update images of ssshadows
Seongdae 451068d
Revert to the origin
Seongdae 2405d01
Merge branch 'master' into urp/fixToHideSettingsOfSSShadows
Seongdae 3d323f4
Merge branch 'master' into urp/fixToHideSettingsOfSSShadows
Seongdae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...iversal/Documentation~/Images/ssshadows/ssshadows-cast-shadow-totransparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...versal/Documentation~/Images/ssshadows/ssshadows-cast-shadow-using-cascades.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...sal/Documentation~/Images/ssshadows/ssshadows-cast-shadow-using-screenspace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...pipelines.universal/Documentation~/Images/ssshadows/ssshadows-framedebugger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...render-pipelines.universal/Documentation~/Images/ssshadows/ssshadows-result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...ipelines.universal/Documentation~/Images/ssshadows/ssshadows-shadow-texture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions
24
...der-pipelines.universal/Documentation~/renderer-feature-screen-space-shadows.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Screen Space Shadows Renderer Feature | ||
|
||
The Screen Space Shadows [Renderer Feature](urp-renderer-feature.md) calculates screen-space shadows for opaque objects affected by the main directional light and draws them in the scene. To render screen-space shadows, URP requires an additional render target. This increases the amount of memory your application requires, but if your project uses forward rendering, screen-space shadows can benefit the runtime resource intensity. This is because if you use screen-space shadows, URP doesn't need to access the cascade shadow maps multiple times. | ||
<br/>*Screen-space shadows in a sample Scene.* | ||
|
||
<br/>*The screen-space shadows texture for the above image.* | ||
|
||
## Enabling screen-space shadows | ||
|
||
To add screen space shadows to your project, [add the Screen Space Shadows Renderer Feature ](urp-renderer-feature-how-to-add.md) to the URP Renderer. | ||
|
||
## Viewing screen-space shadows in the Frame Debugger | ||
|
||
After you enable this Renderer Feature, URP renders screen-space shadows in your scene. To distinguish between shadow map shadows and screen-space shadows, you can view the render passes that draws the shadows in the [Frame Debugger](https://docs.unity3d.com/Manual/FrameDebugger.html). | ||
<br/>*Screen Space Shadows pass in frame debugger.* | ||
|
||
You can compare shadows cast on opaque objects from the screen-space shadow texture or the cascade shadow maps. | ||
<br/>*The Frame Debugger shows the screen-space shadows texture.* | ||
|
||
<br/>*The Frame Debugger shows shadows from a shadow map.* | ||
|
||
## **Requirements and compatibility** | ||
|
||
This Renderer Feature uses a depth texture and invokes a depth prepass before it draws opaque objects. It calculates the shadows in screen space before the `DrawOpaqueObjects` render pass. URP doesn't calculate or apply screen-space shadows for transparent objects; it uses [shadow maps](urp-shadows.md) for transparent objects instead. *<br/>The Frame Debugger showing that Unity uses shadow maps for transparent objects and screen-space shadows for opaque objects.* |
36 changes: 36 additions & 0 deletions
36
com.unity.render-pipelines.universal/Editor/RendererFeatures/ScreenSpaceShadowsEditor.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using UnityEngine; | ||
using UnityEngine.Rendering.Universal; | ||
|
||
namespace UnityEditor.Rendering.Universal | ||
{ | ||
[CustomEditor(typeof(ScreenSpaceShadows))] | ||
internal class ScreenSpaceShadowsEditor : Editor | ||
{ | ||
#region Serialized Properties | ||
private SerializedProperty m_SettingsProp; | ||
#endregion | ||
|
||
private bool m_IsInitialized = false; | ||
|
||
private struct Styles | ||
{ | ||
public static GUIContent Description = EditorGUIUtility.TrTextContent("Description", "This feature resolves the cascaded shadows in screen space, so there is no options now. It might have additional settings later."); | ||
} | ||
|
||
private void Init() | ||
{ | ||
m_SettingsProp = serializedObject.FindProperty("m_Settings"); | ||
m_IsInitialized = true; | ||
} | ||
|
||
public override void OnInspectorGUI() | ||
{ | ||
if (!m_IsInitialized) | ||
{ | ||
Init(); | ||
} | ||
|
||
EditorGUILayout.PropertyField(m_SettingsProp, Styles.Description); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...unity.render-pipelines.universal/Editor/RendererFeatures/ScreenSpaceShadowsEditor.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.