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

Internal/2023.2/staging #8066

Merged
merged 4 commits into from
Apr 29, 2024
Merged

Conversation

UnityAljosha
Copy link
Collaborator

Please read the Contributing guide before making a PR.

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

Why is this PR needed, what hard problem is it solving/fixing?


Testing status

Describe what manual/automated tests were performed for this PR


Comments to reviewers

Notes for the reviewers you have assigned.

Adrian1066 and others added 4 commits April 11, 2024 17:01
…d methods

This is a backport of https://github.cds.internal.unity3d.com/unity/unity/pull/45224

Adds documentation for some of the helper methods in the URP shader library (and some methods from Core SRP shader library files that URP includes)

To avoid this documentation task getting too large, I've focused on methods from:

- Core.hlsl
- Lighting.hlsl
- Shadows.hlsl
- ShaderVariablesFunction.hlsl
- SpaceTransforms.hlsl (from SRP Core)

I've aimed to cover methods/needs that are mentioned in our existing BiRP basic shaders documentation, so that users no longer accidentally find and use BiRP methods that don't work in URP.

Preview site: https://docs-internal-preview.prd.it.unity3d.com/markg/urp-shader-methods/manual/use-built-in-shader-methods.html (needs VPN)

Jira ticket: https://jira.unity3d.com/browse/DOCG-1019
Various backports
…ith the main light.

Fixes - Setting shadow rendering layer is not changing shadow when using “shadowRenderingLayers” in the script
https://jira.unity3d.com/browse/UUM-28061

Added logic similar to UI. Where we replace base light component renderingLayerMask with either shadow or light layers. Which later used for shadow drawing.
@UnityAljosha UnityAljosha requested review from a team as code owners April 29, 2024 09:28
@UnityAljosha UnityAljosha merged commit eb81481 into 2023.2/staging Apr 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants