-
Notifications
You must be signed in to change notification settings - Fork 855
DOC-1818 Writing URP shaders #550
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
DOC-1818 Writing URP shaders #550
Conversation
On the page, the examples will go in this order: Basic - Color - Normal - Texture.
Changed the format to tutorial style.
…amples.md into smaller pages.
...unity.render-pipelines.universal/Documentation~/writing-shaders-urp-basic-unlit-structure.md
Outdated
Show resolved
Hide resolved
...unity.render-pipelines.universal/Documentation~/writing-shaders-urp-basic-unlit-structure.md
Outdated
Show resolved
Hide resolved
...unity.render-pipelines.universal/Documentation~/writing-shaders-urp-basic-unlit-structure.md
Outdated
Show resolved
Hide resolved
{ | ||
// Declaring the output object (OUT) with the Varyings struct. | ||
Varyings OUT; | ||
// The TransformObjectToHClip function transforms vertex positions from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same overflow issue here
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-color.md
Show resolved
Hide resolved
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-color.md
Show resolved
Hide resolved
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-color.md
Outdated
Show resolved
Hide resolved
// To make the shader SRP Batcher compatible, declare all properties related to | ||
// a Material in a a single CBUFFER block with the name UnityPerMaterial. | ||
CBUFFER_START(UnityPerMaterial) | ||
// The following line declares the _BaseColor variable, so that you can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overflow :)
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-texture.md
Show resolved
Hide resolved
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-texture.md
Show resolved
Hide resolved
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-texture.md
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a fine start to the shader docs.
I've added some comments mostly regarding formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Terminology pass - if I missed any instances, please update them to the correct term according to the other examples/the updated shader glossary. Any questions, let me know!
...unity.render-pipelines.universal/Documentation~/writing-shaders-urp-basic-unlit-structure.md
Outdated
Show resolved
Hide resolved
...unity.render-pipelines.universal/Documentation~/writing-shaders-urp-basic-unlit-structure.md
Outdated
Show resolved
Hide resolved
...unity.render-pipelines.universal/Documentation~/writing-shaders-urp-basic-unlit-structure.md
Outdated
Show resolved
Hide resolved
...unity.render-pipelines.universal/Documentation~/writing-shaders-urp-basic-unlit-structure.md
Outdated
Show resolved
Hide resolved
...unity.render-pipelines.universal/Documentation~/writing-shaders-urp-basic-unlit-structure.md
Outdated
Show resolved
Hide resolved
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-color.md
Outdated
Show resolved
Hide resolved
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-normals.md
Outdated
Show resolved
Hide resolved
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-texture.md
Outdated
Show resolved
Hide resolved
com.unity.render-pipelines.universal/Documentation~/writing-shaders-urp-unlit-texture.md
Outdated
Show resolved
Hide resolved
com.unity.render-pipelines.universal/Documentation~/shaders-in-universalrp.md
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, mostly just grammatical fixes! Pre-approving the suggested changes.
DOC-1818
New pages with guidelines on writing shaders in URP.
Please review the texts for technical correctness.
To make the review more convenient, I've created the preview here:
https://docs-mizu.unity.com/oleks-k/manual/writing-custom-shaders-urp.html