Skip to content

Conversation

Seongdae
Copy link
Contributor

@Seongdae Seongdae commented Jul 2, 2021

Checklist for PR maker

  • Have you added a backport label (if needed)? For example, the need-backport-* label. After you backport the PR, the label changes to backported-*.
  • Have you updated the changelog? Each package has a CHANGELOG.md file.
  • Have you updated or added the documentation for your PR? When you add a new feature, change a property name, or change the behavior of a feature, it's best practice to include related documentation changes in the same PR. If you do add documentation, make sure to add the relevant Graphics Docs team member as a reviewer of the PR. If you are not sure which person to add, see the Docs team contacts sheet.
  • Have you added a graphic test for your PR (if needed)? When you add a new feature, or discover a bug that tests don't cover, please add a graphic test.

Purpose of this PR


Testing status

Describe what manual/automated tests were performed for this PR


Comments to reviewers

Notes for the reviewers you have assigned.

@Seongdae Seongdae requested a review from phi-lira July 2, 2021 09:43
@Seongdae Seongdae self-assigned this Jul 2, 2021
@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed.
Link to Yamato: https://yamato.cds.internal.unity3d.com/jobs/902-Graphics
Search for your PR branch using the sidebar on the left, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

URP
/.yamato%252Fall-urp.yml%2523PR_URP_2021.2

Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure.

@Seongdae Seongdae changed the title Urp/fix to hide settings of ss shadows Urp/fix to add tooltip of ss-shadows Jul 7, 2021
@Seongdae Seongdae requested a review from oleks-k July 8, 2021 05:54
#endif

#if defined(LIGHTMAP_SHADOW_MIXING) || defined(SHADOWS_SHADOWMASK) || !defined(_MAIN_LIGHT_SHADOWS_SCREEN)
return MixRealtimeAndBakedShadows(realtimeShadow, bakedShadow, shadowFade);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@phi-lira the main goal of this PR is to fix a fugbuz.

And,
While I was working on far-distance shadows using my another screen space shadows renderer feature, the cascade distance faded out those shadows although there are far distance shadows in the scene.
I thought it needs to exclude fade-out in getting shadows from screen space shadow texture when it didn't have baked shadows. This is my opinion and if this idea had problems in the current situation. let me revert it to the original codes. and I'll request another PR for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@phi-lira plz check this PR and tell me your opinions

Copy link
Contributor

Choose a reason for hiding this comment

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

@lukaschod can you have a look at this?

Copy link
Contributor

@lukaschod lukaschod Sep 20, 2021

Choose a reason for hiding this comment

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

I am not sure I undestand fully the intention behind the macro usage here. @Seongdae could you eleborate a bit more, as seems like u are removing shadow fade in case of no mixed lighting or am I wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move shadow fade to screen space shadows pass when screen space shadows' feature was enabled in case of no mixed lighting.

In this hackweek, I tried to make a custom screen space shadows' feature for shadowing large-scale, and it could cast shadows on anywhere, but it was faded out beyond the distance urp set. At that moment I though any user can also have trouble with it by their own shadowing solution.

Copy link
Contributor

Choose a reason for hiding this comment

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

k I understand I would prefer to avoid adding screen space logic into this function. As we already have user pain where we have defines that change completetly functionality without users aware of it.
Maybe we can simply have ScreenSpaceShadows.shader instead of calling MainLightRealtimeShadow use MainLightRealtimeShadow in case of no mixed lighting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lukaschod let me think about it and request another PR. the code will be restored in this PR.

Copy link
Contributor

@phi-lira phi-lira left a comment

Choose a reason for hiding this comment

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

Please add graphics tests. Can be in follow up PR or in this one.

#endif

#if defined(LIGHTMAP_SHADOW_MIXING) || defined(SHADOWS_SHADOWMASK) || !defined(_MAIN_LIGHT_SHADOWS_SCREEN)
return MixRealtimeAndBakedShadows(realtimeShadow, bakedShadow, shadowFade);
Copy link
Contributor

Choose a reason for hiding this comment

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

@lukaschod can you have a look at this?

@phi-lira phi-lira requested a review from lukaschod September 10, 2021 08:10
@JordanL8 JordanL8 requested review from JordanL8 and removed request for oleks-k September 30, 2021 09:17
@JordanL8
Copy link
Contributor

JordanL8 commented Sep 30, 2021

Hey @Seongdae, I'll take a look at the docs for this today 🙂

@Seongdae
Copy link
Contributor Author

Hey @JordanL8 thanks :)

@Seongdae Seongdae added the ready-to-merge Add this tag whenever your PR is ready to be merged. i.e, non draft, all reviewers approved, ABV label Oct 6, 2021
@Seongdae Seongdae marked this pull request as ready for review October 6, 2021 07:28
@Seongdae Seongdae requested review from a team as code owners October 6, 2021 07:28
@phi-lira phi-lira changed the base branch from master to universal/staging October 6, 2021 14:27
@phi-lira phi-lira merged commit 6ee599d into universal/staging Oct 6, 2021
@phi-lira phi-lira deleted the urp/fixToHideSettingsOfSSShadows branch October 6, 2021 14:28
@phi-lira phi-lira mentioned this pull request Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Add this tag whenever your PR is ready to be merged. i.e, non draft, all reviewers approved, ABV universal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants