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/2021.3/staging #8068

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.

*[See [this document](https://docs.google.com/document/d/1C4Vc7dOKgoZ2mNqMdugHDg-w6iN7iUYdlBQMGDmVS3E/edit) for details on what can land in 2023.3.]*

Fixed the Float2To8 packing function that was leaving parasite information in the lower bits.
The following image shows in the middle and right square the result of packing and unpacking the color information with the function included in packing.hlsl and a corrected version.
![image](https://media.github.cds.internal.unity3d.com/user/696/files/0d6e67b0-68d9-4eb9-81de-e0f0b1ec1a8e)


*[Description of feature/change. Links to screenshots, design docs, user docs, etc. Link to Jira if applicable. Remember reviewers may be outside your team, and not know your feature/area that should be explained more.]*

See above.
…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
Disable NRP for Apple Silicons as the support is not there on 21.3
*[Corrects the output type of the Branch node as per DOCATT-2055.]*
@UnityAljosha UnityAljosha requested review from a team as code owners April 29, 2024 09:30
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).
See the PR template for more information.
Thank you!

@UnityAljosha UnityAljosha merged commit 02a3c85 into 2021.3/staging Apr 29, 2024
4 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.

3 participants