Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@FrancescoC-unity
Copy link
Contributor

@FrancescoC-unity FrancescoC-unity commented May 13, 2020

The bug that it fixes is this: https://fogbugz.unity3d.com/f/cases/1243282/

The problem derives when shadergraph can generate a 0-length normal (for several manipulation that are possible, this is not impossible). This leads to a normalization that causes a div by 0, hence NaN ensue in lighting calculations.

I will backport when approved as I think there is a conflict that doesn't allow a simple cherry pick.

For QA:
Note that to repro you need to add a camera additional data to the camera and move around a bit when in play mode. Before this fix a small flash will happen.
Ping me and I can point to you where is a good spot to see the issue.

@FrancescoC-unity
Copy link
Contributor Author

Closing to being based on master.

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.