[Built-in] Moving WS view direction from vertex to fragment to lower varying size by skerys · Pull Request #6512 · Unity-Technologies/Graphics · GitHub
Skip to content

[Built-in] Moving WS view direction from vertex to fragment to lower varying size#6512

Merged
sebastienlagarde merged 1 commit into
masterfrom
shadergraph/builtin-world-space-view-dir-to-frag
Dec 8, 2021
Merged

[Built-in] Moving WS view direction from vertex to fragment to lower varying size#6512
sebastienlagarde merged 1 commit into
masterfrom
shadergraph/builtin-world-space-view-dir-to-frag

Conversation

@skerys

@skerys skerys commented Dec 7, 2021

Copy link
Copy Markdown
Contributor

Purpose of this PR

Removing WS view direction from varyings broke shadergraph on built-in renderer. This PR makes built-in mirror the new behavior in URP (added with #5509), by moving the calculation of WS view direction into fragment shader.


Testing status

tested the BuiltinGraphicsTest_Lighting project locally
checked the behavior of the View Direction node
PR Shadergraph + ShaderGraph_BuiltIn_Lighting in yamato

@github-actions

github-actions Bot commented Dec 7, 2021

Copy link
Copy Markdown

@skerys

skerys commented Dec 7, 2021

Copy link
Copy Markdown
Contributor Author

The two test failures in ShaderGraph on Win_DX11_Standalone_mono_Linear and VFX_URP on Win_DX11_playmode_mono_Linear happen in master too, all other tests passed

@skerys skerys marked this pull request as ready for review December 7, 2021 15:29
@skerys skerys requested a review from a team as a code owner December 7, 2021 15:29

@jessebarker jessebarker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@sebastienlagarde sebastienlagarde merged commit 8f88211 into master Dec 8, 2021
@sebastienlagarde sebastienlagarde deleted the shadergraph/builtin-world-space-view-dir-to-frag branch December 8, 2021 10:11
@sebastienlagarde

Copy link
Copy Markdown
Contributor

Does this need to be backport to 22.1? / 21.2? I see the original PR is from September

@skerys

skerys commented Dec 8, 2021

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants